SQL Server Trigger to Check if Value Has Changed (UPDATE() vs inserted/deleted)
UPDATE(CreditLimit) returned 1 when I set CreditLimit to its own value. For a sql server trigger to check if value has changed, join inserted to deleted on the key and keep rows where the new value IS DISTINCT FROM the old one. Quick answer: put the comparison in the trigger’s WHERE clause, not in an … Read more >>