Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call stored procedure from trigger (multiple records upd
Message
De
25/02/2007 12:02:46
 
 
À
25/02/2007 04:01:07
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01198598
Message ID:
01198632
Vues:
8
John,

A SQL update trigger exposes the system table INSERTED, which contains one row for each row affected by the original UPDATE statement.

I wrote an article a while back that contains some code for this...

http://www.code-magazine.com/article.aspx?quickid=0503071&page=4

Listing 9 on that page shows how to use the contents of the INSERTED table, to query against (and update) another table.

Let me know if that helps...
KG
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform