Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which trigger...
Message
De
20/12/1999 17:51:18
 
 
À
20/12/1999 10:16:53
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00306121
Message ID:
00306479
Vues:
24
>Is there a way to know which trigger called my SP? Update,Delete,New? Or is the only way to query the Insert and Delete tables and determine from there record counts?

I don't think there's any way without passing some info from the trigger.

BTW, are the deleted and inserted tables visible to a stored procedure that is called from within a trigger?

Also, are you sure that you want to call a stored procedure from within the trigger? Remember that a trigger will fire no matter how many rows were affected by the query.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform