Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any feedback on my first SQL Server trigger
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01096860
Message ID:
01097010
Views:
19
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform