Thursday, July 03, 2008

@@ERROR in t-sql @_@

Well, i have a stored procedure that fail in some part, in a delete statement, but the sp continue running, and execute the next sp, something like that
CREATE PROC _SP_WRAP_ALLSP AS
EXEC SP1
EXEC SP2
.
.
.

Well, if a error ocurred in SP1, the _SP_WRAP_ALLSP continue with the next SP2,
then if you want to find a error, you have to use @@ERROR, like this link mentioned, and something else you get a code error, but what does it means? well sys.messages answer your question.

Bye

No comments: