Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute a varchar string variable?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00434888
Message ID:
00435315
Vues:
12
>Let me ask you this, What is the best way to update the values in one table with only the values that changed in the table that fired the trigger?
>
>I don't want to copy the deleted record to another table, I want to copy only the fields that change in the deleted record to another table.

The Deleted and Inserted tables will contain the before and after images of the changed rows. There is also a version of the IF statement, IF UPDATE, that can be used on a column by column basis.

-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