Log your exceptions to a text file? 😊
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Malcolm Greene Sent: Thursday, September 13, 2018 5:02 PM To: profoxtech@leafe.com Subject: Example of T-SQL exception handling within a transaction?
Anyone have an example of how to trap and exception within a T-SQL transaction and save diagnostic details on why the transaction failed to an error log? If you insert the exception data to an error table this information gets lost when you rollback the transaction. I'm sure I'm missing something obvious :) Thanks, Malcolm