Home Forums SQL Server 2008 T-SQL (SS2K8) Get sql statement which throws exception while executing in try block RE: Get sql statement which throws exception while executing in try block

  • you can use SELECT ERROR_LINE() to get the line the error occurred on.