Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure vs trigger
Message
De
08/02/2006 08:33:02
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Procedure vs trigger
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01094603
Message ID:
01094603
Vues:
50
I would like to user a trigger to call a procedure, mostly to make to code that I would have put in the trigger alone, non-hidden (i.e. I want the fact that there is code affecting that function to be available in the list with the other code that is in the stored prodecure area).

My question is, in a trigger, one can set rollback for certain conditions etc., if those conditions are found in the called procedure, will the rollback still rollback the update / insert in the table, since the focus would no longer be inside the trigger?

Also, can values be pulled from the inserted table in a procedure called from a trigger?
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Répondre
Fil
Voir

Click here to load this message in the networking platform