How do I find the error line in SQL Server?
Using ERROR_LINE in a CATCH block. This code example shows a SELECT statement that generates a divide-by-zero error. ERROR_LINE returns the line number where the error occurred. How do I find the SQL Server error line? Using ERROR_LINE in a CATCH block. This code example shows a SELECT statement that generates a divide-by-zero error. ERROR_LINE returns the line number where …