we can set order option of trigger to first, last or none by use sp_settriggerorder command. I want to know what’s significance of set trigger order. and when necessity using this option?
I use SQL Server 2008 R2.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One purpose would be if you want one trigger to perform some form of sanity checks before other triggers (which may have expensive actions) fire. If the
firsttrigger causes aROLLBACKto occur, the other triggers aren’t fired: