Rolling back a doomed transaction

  • I have a trigger that errored out and didn't have the Rollback command in the catch. I'm getting the following error:

    4710515 - Error #: 3930 Error Severity: 16 Error State: 1 Error Line: 20 Error Message: The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.

    I believe this is a doomed transaction from what I've been able to find online. How can I manually rollback the trans action?

  • Try to make use of TRY/BEGIN, CATCH in the trigger.

    Also XACT_STATE can be used for rolling back.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

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

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