If you are aware of any programming language. Then you have to know about the exception handling like “Try, Catch” blocks .This is used in Sql Server as well.
Firstly,
Sql Server 2005 introduced Try Catch blocks to handle errors effectively from the backend side.
The handling of the exception can provide more and specific information of errors and translate those errors into some meaningful message to make the user understand by logging and saving to the table.
Now, we will understand in depth how it works.
- BEGIN TRY
- //Your Logic
- END TRY
- BEGIN CATCH
- //if any exception came in try block you can handle here
- END CATCH

Humayun Kabir MamunPosted Nov 3, 2015, 1:00 AM
Nice...
Shridhar SharmaPosted Nov 2, 2015, 12:59 PM
nice share
Gowtham KPosted Nov 2, 2015, 11:34 AM
Good One, Thanks for sharing
Manish KukrejaPosted Nov 2, 2015, 6:24 AM
Good One
Nilesh JadavPosted Nov 2, 2015, 6:16 AM
Nice Share sir !!
Anu VPosted Nov 2, 2015, 4:52 AM
good one
Harshad PansuriyaPosted Nov 2, 2015, 4:44 AM
Nice one
Yashwant VishwakarmaPosted Nov 2, 2015, 4:44 AM
Nice one !!
Sibeesh VenuPosted Nov 2, 2015, 4:41 AM
Nice Share