Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Creating an Audit Trigger

$
0
0

Hi, I have a table called payments Which has an LocationID , MensualAmount and Numbre of payments

I want to make a trigger that when someone changes anything in any of these columns , it will write the date it was changed, the old value the new value and which LocationID was changed in an Audit table

Im trying to use a For Update trigger , but im lost 

can anyone point me on the right track ?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>