fuzzyocelot
Programmer
Hello!
We have a stand-alone server running SQL Server 2005 SP2 for a specific application. It contains a database that has 90+ tables. Of these tables, about 30 have insert, update, and delete triggers. They are After triggers and are being used for audit purposes. Meaning, whenever someone does an insert, update, or delete on a specific table, certain information is written to an audit log table.
During testing, someone noticed there was a trigger in there somewhere that inserts thousands of records into the audit log table. However, no one was able to determine which trigger caused the issue. Traces were set but the culprit wasn't found. Prior to going live, the audit log table was cleared out. This problem trigger hasn't fired off yet but the developers are nervous this could happen again and cause major issues.
I'm not sure what to set up on the SQL server side that would help me find this problematic trigger. I would rather not wait until it happens again but I don't have time to go through every trigger. I thought about setting a trace but on what object(s)? Does anyone have any ideas on how I can find this trigger?
Thanks!
We have a stand-alone server running SQL Server 2005 SP2 for a specific application. It contains a database that has 90+ tables. Of these tables, about 30 have insert, update, and delete triggers. They are After triggers and are being used for audit purposes. Meaning, whenever someone does an insert, update, or delete on a specific table, certain information is written to an audit log table.
During testing, someone noticed there was a trigger in there somewhere that inserts thousands of records into the audit log table. However, no one was able to determine which trigger caused the issue. Traces were set but the culprit wasn't found. Prior to going live, the audit log table was cleared out. This problem trigger hasn't fired off yet but the developers are nervous this could happen again and cause major issues.
I'm not sure what to set up on the SQL server side that would help me find this problematic trigger. I would rather not wait until it happens again but I don't have time to go through every trigger. I thought about setting a trace but on what object(s)? Does anyone have any ideas on how I can find this trigger?
Thanks!