I use C # and Sql Server 2008, and I have some try / catch blocks in my CLR stored procedure, and they are caught. They are logged in the file, and they return a code error and message using SqlPipe. These fines work. Now I need to do the same when I have incorrect errors, especially for tracking in the log file!
I tried to use Application.ThreadException, but this class is not available in the CLR (WinForms) stored procedure. Should I use the naughty try / catch block in my input Sql procedure method or is there something better to do?
Thanks.
c # sql sql-server sql-server-2008 clrstoredprocedure
Dan
source share