Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any feedback on my first SQL Server trigger
Message
 
À
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:
01097010
Vues:
18
>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.

Hi Kevin. Important distinction. Will change the code.

Wrapping my head around how different the SQL Server triggers are than VFP, especially the inserted and deleted cursors.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform