When do triggers fire and when don't they

后端 未结 4 2047
感动是毒
感动是毒 2021-02-20 16:54

Pretty general question regarding triggers in SQL server 2005.

In what situations are table triggers fired and what situations aren\'t they?

Any code examples to

4条回答
  •  一个人的身影
    2021-02-20 17:19

    On 2008 you can use built in Change Data Capture

    Also There are quite a few situations when triggers do not fire, such as:

    · A table is dropped.

    · A table is truncated.

    · Settings for nested and/or recursive triggers prevent a trigger from firing.

    · Data is bulk loaded, bypassing triggers.

提交回复
热议问题