I am executing a stored procedure that will always return a value, specifically an integer. The error handling within the stored procedure will return 0 if succesful, 1 on an error, and 2 for a duplicate. How to I capture the returned integer?
int ReturnValue = cmd.ExecuteNonQ uery(); will return the number of rows effected, but I just want the simple return value. I did not think I would need an output parameter to perform this, what am I missing here?
int ReturnValue = cmd.ExecuteNonQ uery(); will return the number of rows effected, but I just want the simple return value. I did not think I would need an output parameter to perform this, what am I missing here?
Comment