By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,857 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,857 IT Pros & Developers. It's quick & easy.

Methoology for data changes being tracked

P: n/a
I need to be compliant with law that keeps a history of changes to tables as
records are edited. What is the best way to do this ? I was thinking a SQL
trigger on each table that writes to another change table on update (seems a
bit much), or use an OnChange event when ADO.NET posts to track the changes.
Is there a better approach to what seems a standard problem these days ?
Jun 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The only completely reliable way is to use the db triggers someone could
easily change the data in the db without going through your interface (or
someone could feasable modify your application to bypass the audit code).
That said, many people also use code level logging .. if are using something
like an object persistence framework (nhibernate etc) many have extension
points for things like logging. If youa re just using ADO and calling
inserts directly etc as opposed to a centralized framework I might lean
towards triggers as the code will get to be tough to maintain (as someone
could easily forget to put in an audit or miss an audit)

Cheers,

Greg Young
MVP - C#
http://geekswithblogs.net/gyoung
"Ronj" <Ro**@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
I need to be compliant with law that keeps a history of changes to tables
as
records are edited. What is the best way to do this ? I was thinking a SQL
trigger on each table that writes to another change table on update (seems
a
bit much), or use an OnChange event when ADO.NET posts to track the
changes.
Is there a better approach to what seems a standard problem these days ?

Jun 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.