sql server - What is the best implementation for DB Audit Trail? -
a db audit trail captures user last modified, modified date, , created date.
there several possible implementations:
- sql server triggers
- add usermodified, modifieddate, createddate columns database , include logic in stored procedures or insert, update statements accordingly.
it nice if include implementation (or link to) in answer.
depending on you're doing, might want move audit out of data layer data access layer. give more control.
i asked similar question wrt nhibernate , sqlserver here.
Comments
Post a Comment