6> SELECT 1/0 AS DivideByZero 7> IF @@ERROR <> 0 8> SELECT @@ERROR AS ErrorNumber 9> GO Msg 8134, Level 16, State 1, Server J\SQLEXPRESS, Line 6 Divide by zero error encountered.