Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Order of trigger execution

Author  Topic 

Scott
Posting Yak Master

145 Posts

Posted - 2002-03-25 : 09:26:32
I have 2 insert triggers on the same table. Is there a way I can specify which executes first?

setbasedisthetruepath
Used SQL Salesman

992 Posts

Posted - 2002-03-25 : 09:28:16
yes, check BOL for sp_settriggerorder.

setBasedIsTheTruepath
<O>
Go to Top of Page

Da_Retina
Posting Yak Master

109 Posts

Posted - 2002-03-26 : 01:30:25
This is only on 2000..doesnt work on version 7

------------------
If I am to do it,
I will, and NOW ..
Go to Top of Page

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-03-26 : 02:24:52
That shouldn't stop you putting all your code (in the right order) into the one trigger.....

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page

jackstow
Posting Yak Master

160 Posts

Posted - 2002-03-26 : 04:36:24
And beware that sp_settriggerorder only sets the first and last trigger to be fired, any other triggers inbetween are left to their own devices...

Go to Top of Page
   

- Advertisement -