Solved

Data Change Tracking In an Application

Posted on 2007-11-14
3
604 Views
Last Modified: 2012-08-13
We  build applications with Access front ends and SQL 2000 backends. One of the requests we get frequently is to track when data is changed and who changed it.  Currently to do that we put code behind EVERY field to get the old value compare it to the new value and then if it is different put the information in a record log table. We then create a form so Management can search and view the changes.   I am sure there has to be a better and easier way!

I know SQL has a transaction log but is that something I can link into an application to display changes in a particular DB? Does anyone have any ideas? it will take me about a week to do it the way we have been so far. . Here is what our log end up looking like now

recordLog
Log_Seq      LogID      LogDate      FieldName      Was      Is      SubSeq      MainSeq      FormName
48394      Amelia Power      05/16/2007      Received      0      -1      10371      6302      BackGround Check Information
0
Comment
Question by:PSIUnit
3 Comments
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 20280845
I would recommend 3rd party tools (www.idera.com)
but
you can try to use audit triggers:
http://sqlserver2000.databases.aspfaq.com/how-do-i-audit-changes-to-sql-server-data.html
--
Generic audit trail trigger
Author Nigel Rivett
http://www.nigelrivett.net/AuditTrailTrigger.html
0
 
LVL 14

Expert Comment

by:twoboats
ID: 20280954
Ditto.

The tran logs won't help you - without a 3rd party tool to read them.

You could enable c2 auditing, but it uses lots of space, and the info of who changed what isn't available to queries.
0
 

Author Comment

by:PSIUnit
ID: 20281017
I will research these and get back.. a third party software sounds great if i can swing the funding..

Thanks
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question