So I've got a simple update trigger that copies the the deleted data into another table of the same format, with the addition of the modified date. It works great, however there are a lot of cases in the application code when an update is performed that doesn't actually change any values.
I'm trying to avoid these being picked up in the audit tables.
Does anybody have any suggestions on how I can fix this, without changing my application code. Possibly a simple comparison of the rows to check for changes?
Thanks
Unfortunately, it is a column by column comparison in the trigger
Edit: for not guaranteed 100% accuracy, you can use CHECKSUM(*). HashBytes is better
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With