G
Guest
Hello
I get the SqlException
"A severe error occurred on the current command. The results, if any, should be discarded."
when I call the stored procedure sp_addmergepublication
This is my code
SqlCommand cmd = new SqlCommand()
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "[sp_addmergepublication]"
cmd.Parameters.Add(@"@publication", "Testing")
cmd.ExecuteNonQuery()
Unless the error, the publication is still created
Calling the same stored procedure in the SQL Query Analyser doesnot give this error
Why do I get this error in my application
Does anyone know a solution
thanks, Marc
I get the SqlException
"A severe error occurred on the current command. The results, if any, should be discarded."
when I call the stored procedure sp_addmergepublication
This is my code
SqlCommand cmd = new SqlCommand()
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "[sp_addmergepublication]"
cmd.Parameters.Add(@"@publication", "Testing")
cmd.ExecuteNonQuery()
Unless the error, the publication is still created
Calling the same stored procedure in the SQL Query Analyser doesnot give this error
Why do I get this error in my application
Does anyone know a solution
thanks, Marc