Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any feedback on my first SQL Server trigger
Message
De
16/02/2006 22:38:06
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01096860
Message ID:
01096972
Vues:
11
This message has been marked as the solution to the initial question of the thread.
Hey, Evan,

As Sergey said, that's correct - however, I *believe* that the UPDATE function will return a value of TRUE if the column was merely specified in an UPDATE statement (regardless of whether it was actually changed).

If that's the case, you may be updating the date field more frequently than desired.

If so, you can add an " and (inserted.repdate <> deleted.repdate or inserted.repstaff <> deleted.repstaff)" in the WHERE clause.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform