Disable and Enable trigger

  • Hi,

    I have a trigger that I disable so I can do some operations on a table.

    After the operations are completed I do the enable using the enable trigger comand.

    Do I need to do something else to put back the trigger working as it was before the disable comand?

    Thank you

  • No, that's sufficient.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • thank you

  • Shifting gears, triggers are normally put in place to guarantee that something occurs when the data is INSERTed, UPDATEd, or DELETEd. Why do you need to overcome the trigger action to begin with?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

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