If the statement that caused the error is in the TRY block, the ERROR_LINE() function returns the line number of the statement that caused the error starting with the line after the last GO before the BEGIN TRY statement (which precedes the statement that caused the error). If the statement that caused the error is in the CREATE PROCEDURE block, the ERROR_LINE() function returns the line number of the statement that caused the error starting with the line after the last GO before the CREATE PROC
↧