Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trigger question
Message
De
22/01/2001 12:21:20
 
 
À
22/01/2001 10:29:50
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00466553
Message ID:
00466719
Vues:
11
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform