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!

sybase procedure error handling

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi.

In a stored procedure, if an error occured, how to handle this error and continue the process? Something as on error do something.
 
You can check for @@error just after the sql execution.This @@error is a system level variable .
If @@error <> 0
there is an error do something ,
else
proceed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top