Exception Handling in SQL Server
exception handling in SQL Server 2008 is:
BEGIN TRY
<br>
-- queries and stuff
<br>
END TRY
<br>
BEGIN CATCH
<br>
-- (optional) things to do when exception occurs
<br>
END CATCH
the CATCH
can be empty, if you do not need to add something to it.
Written by Mark Gella
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#