I'm writing a small app that will be used to deploy stored procedure updates/releases across a number of servers.
I need to report back that the update on each server was successful.
At present I'm simply doing the following:
int response = server.ConnectionContext.ExecuteNonQuery(sql);
This successfully updates the sp, but the response is always a random minus number (-3, -4 etc).
What would be the best way to get a response to report back if each update was successful or not?