Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Audit Trails

Author  Topic 

Onamuji
Aged Yak Warrior

504 Posts

Posted - 2001-07-30 : 23:55:27
I've seen the normal standard of using audit trails as columns but I need to track ALL changes, for this I have two tables:

AUDIT_TRAILS
- Id
- RefTable
- RefId

AUDIT_TRAIL_ENTRIES
- Id
- AuditTrailId
- UserId
- DateTimeOfEntry

I hope thats self explanatory, well I was wondering if anyone else came up with a better solution to this, this model works, but like the diligent little hacker, I'm always looking for better, stronger, ways to do almost everything...

Thanks for any input given.
   

- Advertisement -