Greg Duffie

FTI Consulting / Ringtail / Nuix

Built a Universal Auditing System Using Dynamic SQL

Senior Software Engineer II, SQL Server Developer2009 – 2011

Situation

The platform lacked a consistent way to track changes across client databases. Each client schema was different and writing custom audit logic for each was impractical at scale — but legal discovery clients had strict requirements for audit trails.

What I Did

Designed and built an auditing system using triggers and dynamic SQL to automatically track changes to any SQL Server 2000/2005 database. The system required no schema-specific customization — it interrogated the schema at runtime and generated the appropriate capture logic dynamically.

Result

Delivered a universal audit trail that worked across all client databases without modification, reducing compliance risk and removing the need for per-client audit implementations.

Tools & Tech

SQL ServerT-SQLDynamic SQL