December 13, 2008 at 1:36 am
Hi
Can anybody tell me how to fix a sequence for two or more triggers for the same event?
Thanks
Adish
December 13, 2008 at 6:51 am
As long as it is NOT more than 3 triggers you can. These 2 links will help you do that
[urlhttp://www.sqlservercentral.com/articles/SQL+Puzzles/triggerstoexecuteinpredefinedorder/2337/][/url]
also:
December 13, 2008 at 8:33 am
You can define the First trigger and the Last trigger, everything else is just in-between them, as per bitbucket's links.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
December 13, 2008 at 9:05 am
Thanks bitbucket and RBarryYoung, both the links were helpful.
December 13, 2008 at 9:45 am
Glad we could help.
Just out of intrest: what use would you have for being able to set the order of 4 or more triggers?
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
December 13, 2008 at 9:56 am
It was only important to set one trigger as 'Last'. The order of others was immaterial. When I said 'a sequence', it seems I did not use the appropriate word or maybe curiosity was weighing on my mind.
Thanks
Adish
December 13, 2008 at 11:43 am
OK, thanks.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply