Solved

Audit of Database Changes

Posted on 2010-08-18
3
256 Views
Last Modified: 2012-06-21
Is there an easy way to see what fields have changed in a database.

I have an audit requirement that basically needs me to determine what changed

So when I do an update, I would ideally like to know what columns and fields changed

Something like

Name: Fred Fluntstone

changed to

Name: Fred Flintstone
0
Comment
Question by:Plucka
3 Comments
 
LVL 2

Expert Comment

by:j_coreil
ID: 33466055
Typically data auditing like this is very expensive in way one or another. For example, there are applications that sit on the database that will log every change to every column. These solutions are very resource expensive as well as $$.

What I've done in the past is understand from a business aspect what information is really needing to be audited and logged. After you identify the columns, write a trigger that either logs the change into an audit table or fires off an alert. Lastly, another option is to implement auditing at the entire database level.

It really just depends on what you requirements really are and what $$ you have to work with.
0
 
LVL 18

Author Comment

by:Plucka
ID: 33466102
Cost isn't really an issue, but the basic things I need to log are

date
time
user
description of event
database changes
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 33471020
Then you should take a look at CDC
http://msdn.microsoft.com/en-us/library/bb522489.aspx

However it does require that you have a licenced copy of the Enterprise Edition.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

21 Experts available now in Live!

Get 1:1 Help Now