O
Omkumar Enkannathan
Hai All,
I need some help. I am calling a stored procedure using ExecuteNonQuery (I
am not expecting any results back from the stored procedure).
When there is something wrong with the stored procedure execution, the
procedure returns different error codes ( I call the RETURN() method ). How
do I capture these return values after calling the ExecuteNonQuery() method?
For example:-
my stored procedure is like...
CREATE PROC myproc...
....
begin
/* do something */
/* oops an error*/
goto error
.....
error
return(-11) //if -11 the insertion failed
end
***********************************
How do I retrieve the -11??
I need some help. I am calling a stored procedure using ExecuteNonQuery (I
am not expecting any results back from the stored procedure).
When there is something wrong with the stored procedure execution, the
procedure returns different error codes ( I call the RETURN() method ). How
do I capture these return values after calling the ExecuteNonQuery() method?
For example:-
my stored procedure is like...
CREATE PROC myproc...
....
begin
/* do something */
/* oops an error*/
goto error
.....
error
return(-11) //if -11 the insertion failed
end
***********************************
How do I retrieve the -11??