Monday, July 9, 2012

Error Handling in SQL: (Try.... Catch...):

 In SQL, we can acheive error handling with the help of  Try.. Catch blocks. If we anticipate errors in a piece of SQL code, we can keep the code between Try..Catch block. If any error occurs, Try block will handle the error and Catch blok will send respective error massage. See the example below with syntax.

Examples:




No comments:

Post a Comment