I’m having a problem with a database, where it seems a column is updated with a wrong value. At the moment, I have no idea which program is doing this. What would be the best way to find this out? Things that could really help me are, in order of helpfulness:
- The application name
- the host executing the application
- the exact SQL statement.
Could the transaction log help me here? Can I write a logging trigger somehow?
Help would be appreciated.
You could create a trigger and a table, along the lines of