Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trigger question
Message
From
22/01/2001 12:21:20
 
 
To
22/01/2001 10:29:50
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00466553
Message ID:
00466719
Views:
10
>>Sorry, SQL Server 7 doesn't have that and I've not heard about anything on those lines in SQL Server 2000 (unless you write your own function called TriggerEvent < s >).
>>
>>In your design, do you have to incorporate all trigger functionality into one trigger? Or can you separate it into multiple triggers, each called for the individual purpose (insert, delete, update)?
>
>well - the problem is that 90% of the code for the two is the same, and I wanted to just manage the 10% in the trigger without having to duplicate so much stuff in two separate triggers
>
>Thanks!

Ken,

You can create an SP that has the 90%, then call it from each of your triggers. Main problem here is the SP you call from the trigger won't have access to the inserted/deleted tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform