Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.

  • Hello,

    is there any way to have sqlserver to terminate the current batch when that situation is detected ?

    Thank you

  • allarmi (7/16/2015)


    Hello,

    is there any way to have sqlserver to terminate the current batch when that situation is detected ?

    Thank you

    Terminate = roll back? Or what, exactly?

    SET XACT_ABORT ON

    may be of interest to you.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

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

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