Solved

Data Change Tracking In an Application

Posted on 2007-11-14
3
574 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
Comment Utility
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
Comment Utility
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
Comment Utility
I will research these and get back.. a third party software sounds great if i can swing the funding..

Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now