Error trapping with try catch

  • has anyone come up with a way to do error trapping with try catch, where it is a distrubuted transaction. It looks like you can't use try catch with distributed

  • Check the "severity" level

    From BOL:

    Errors with severity from 0 through 10 are informational messages and do not cause execution to jump from the CATCH block of a TRY…CATCH construct.

    Errors that terminate the database connection, usually with severity from 20 through 25, are not handled by the CATCH block because execution is aborted when the connection terminates.


    * Noel

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply