I have a stored procedure and it returns a string value, and I have to execute this SP using the ExecuteNonQuery . When I do this, I get -1 as the return value.
I have never used SET NOCOUNT ON . How can I get the return value? I did not declare the return value as OUTPUT - just SELECT @VARIABLENAME . How can I get the value using ExecuteNonQuery ?
source share