/ Published in: SQL

This SQL statesment help you to understand which trigger is going to execute first and which one is going to execute last.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT name TriggerName, ROW_NUMBER() OVER (ORDER BY modify_date DESC) ExecutionOrder FROM sys.triggers WHERE parent_id = object_id('Table-test') ORDER BY modify_date DESC
URL: http://sqlservernet.blogspot.com/2012/01/viewing-trigger-order-first-and-last.html
Comments
