Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trigger is locking up record
Message
From
29/04/2004 08:57:25
 
 
To
29/04/2004 07:23:07
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00899034
Message ID:
00899291
Views:
19
A trigger is tied to a table. The Inserted and Deleted table represent the changed state of that table. Doing an INSERT to another table that has a Insert trigger would create an Inserted table, but for that table. Doing an INSERT back into the same table is allowed and will cause the trigger to fire again recursively, as long as Recursive Triggers is enabled. Check the BOL for more information.

-Mike

>Would doing an insert inside of an insert trigger cause two 'inserted' tables to be created? If so, what would they be called, and how can a programmer know which one to call from where? If not, how would SQL keep track? What if both tables have insert triggers, and both call the insert table for values? (That is the case here).
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform