R
RJN
Hi
I want to get the rerurn value from a stored procedure
My stored proc looks like this
create proc test
.....
if..
return 1
else
if ..
return 2
else
..return 0
I'm using the SqlHelper.ExecuteNonQuery and pass the procedure name,
connection and an array of parameters. How I do I get the return value
from this. If I create a parameter of Diretion ReturnValue and include
in the parameter array, I get an error that the parameters don't match.
WHat is the correct way of doing?
Regards
RJN
I want to get the rerurn value from a stored procedure
My stored proc looks like this
create proc test
.....
if..
return 1
else
if ..
return 2
else
..return 0
I'm using the SqlHelper.ExecuteNonQuery and pass the procedure name,
connection and an array of parameters. How I do I get the return value
from this. If I create a parameter of Diretion ReturnValue and include
in the parameter array, I get an error that the parameters don't match.
WHat is the correct way of doing?
Regards
RJN