Development SQL Server Stored Procedures

Throw

SQL Server THROW statement overview The THROW statement raises an exception and transfers execution to a CATCH block of a TRY CATCH construct. The following illustrates the syntax of the THROW statement: 123 THROW [ error_number ,          message ,          state ]; In this syntax: error_number The error_number is an…