Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practices for Triggers?
Message
De
27/01/2003 12:36:25
 
 
À
27/01/2003 11:40:26
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00745811
Message ID:
00745859
Vues:
23
I'd do a little as possible. The trigger code will be execute for each appropriate statement (INSERT, UPDATE, DELETE) no matter how many row are modifed (even zero) or what columns are modified.

-Mike

>Is there a recommendation as to how much is too much code to have in a trigger? For instance, if I need handle a bunch of conditional coding should that be handled in a trigger or is there a better place to do that?
>
>I've heard some SQL Server users that never use triggers at all.
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform