Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Capture THROW for logging

$
0
0
Hi, is it possible to capture the contents of THROW within a CATCH into a variable so that it can be written to a logging table?I can capture ERROR_MESSAGE() to a variable but unfortunately it only writes the last error rather than the previous one that is informational.I realize that THROW can be multiple lines so it may not be possible to do through TSQL but thought I should ask. Thanks,Howard

Viewing all articles
Browse latest Browse all 3145

Latest Images

Trending Articles



Latest Images