August 14, 2015 at 4:36 pm
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
August 18, 2015 at 5:18 pm
have a read of this article:
hope it helps.
August 18, 2015 at 5:43 pm
Thanks, I'm not sure that it is possible to capture the informational line of the throw to a variable so it can be logged to a table.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply