Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: The DBA Whoops

    chopeen, Newbie,

    I developed a similar template which has saved me repeatedly, with one important extra:

    begin tran

        if (@@trancount > 0) begin

            -- do something here

        end

        

        if (@@trancount > 0)...

Viewing post 1 (of 1 total)