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
davidandrews13
SSCertifiable
Points: 6793
More actions
September 24, 2012 at 3:45 am
#1541314
you can use SELECT ERROR_LINE() to get the line the error occurred on.