Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql Merge Command with Output
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01558126
Message ID:
01558127
Vues:
48
>Have started to use the Merge command, and now want to use it with Output (For Auditing)
>I Can see examples of Deleted.* and Inserted.* but cannot see anywhere to capture Modified Columns
>
>Anybody got an example (of Output with Merge) where Inserted, deleted AND ALTERED columns are output ?
>
>Tia
>Gerard

New values (modified) are in Inserted and the original values (before the update) are in the Deleted tables.

In other words, SQL Server has only two virtual tables: Deleted and Inserted. In case of UPDATE, Inserted has new values (after update) and Deleted hold values before the update.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform