5> BEGIN TRY
6> SELECT 1/0 AS DivideByZero
7> END TRY
8> BEGIN CATCH
9> SELECT 'Exception Caught!' AS CatchMessage
10> END CATCH
11> GO
DivideByZero
------------
(0 rows affected)
CatchMessage
-----------------
Exception Caught!
(1 rows affected)
1>