Solved

Data Change Tracking In an Application

Posted on 2007-11-14
3
586 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Viewers will learn how the fundamental information of how to create a table.

867 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

12 Experts available now in Live!

Get 1:1 Help Now