sp_settriggerorder [ @triggername = ] '[ triggerschema. ] triggername'
, [ @order = ] 'value(First or Last)'
, [ @stmttype = ] 'statement_type ( Insert or update or delete)'
[ , [ @namespace = ] { 'DATABASE' | 'SERVER' | NULL } ]
Note that after executing the sp_settriggerorder if you edit your trigger you will notice the call to the sp_settriggerorder
store procedure at the bottom of the trigger. This is because the trigger execution sequence can change any time a trigger is Alter
For http://msdn2.microsoft.com/en-us/library/ms186762.aspx
Tuesday, October 23, 2007
define trigger execution order
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment