Dear all,
I need to monitor a particular table in my SQL database. I am therefore looking to create a trigger on this table on update/insert/delete. When an update occurs on this table I require all records where Field A is greater than Field B, to be output to a text file.
Can anyone recomend the best way of doing this or provide a breif example of the TSQL to create the trigger as I am having trouble doing this at the moment.
Any guidance would be much appreciated.
I need to monitor a particular table in my SQL database. I am therefore looking to create a trigger on this table on update/insert/delete. When an update occurs on this table I require all records where Field A is greater than Field B, to be output to a text file.
Can anyone recomend the best way of doing this or provide a breif example of the TSQL to create the trigger as I am having trouble doing this at the moment.
Any guidance would be much appreciated.