SQL Server triggers - order of execution

前端 未结 10 1198
旧时难觅i
旧时难觅i 2020-12-16 09:39

Does anyone know how SQL Server determines the order triggers (of same type, i.e. before triggers) are executed. And is there any way of changing this so that I can specify

10条回答
  •  青春惊慌失措
    2020-12-16 10:23

    A million dollar statement in this context -

    sp_settriggerorder: Specifies the AFTER triggers that are fired first or last. The AFTER triggers that are fired between the first and last triggers are executed in undefined order.

    Source : MSDN

提交回复
热议问题