I'm designing a database in which I track changes made to each record. I've currently got a scheme whereby each table has a "LastModifedID" and a "LastModifiedDateTime" column. I intend to populate these with insert and update triggers.
Is there a better way to do this? I know that SQL Server has a a logging feature, is the log data available via queries? Do the logs track login name as well as modification time? Are the logs record specific (seem unlikely but I figured I'd ask)?
Pointers to the appropriate references would be great.
Thanks!
- Gary
Is there a better way to do this? I know that SQL Server has a a logging feature, is the log data available via queries? Do the logs track login name as well as modification time? Are the logs record specific (seem unlikely but I figured I'd ask)?
Pointers to the appropriate references would be great.
Thanks!
- Gary