Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking result of EXECuted statement

Status
Not open for further replies.

varocho

Programmer
Dec 4, 2000
238
US
I have a stored procedure in which I EXECute some DDL statements (built dynamically). How can I check for an error code and error message? (I'm using version 12.5)
 
Check the value of @@error after each statement?

Greg.
 
Greg, thanks for responding. What kinds of values of @@error signify an error has occurred? A positive number?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top