Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Server 2008 - Best way to log Inserts, Updates and Deletes.

Posted on 2013-01-25
1
Medium Priority
?
218 Views
Last Modified: 2013-01-25
Hi..
I have a customer table. I need to log , create an audit log of all the changes to the data by a user.

What's the best way of doing this in SQL2K8....  use a trigger and insert into a audit table?
0
Comment
Question by:JElster
1 Comment
 
LVL 5

Accepted Solution

by:
RehanYousaf earned 1400 total points
ID: 38819126
One option is to use Change Data Capture
http://msdn.microsoft.com/en-us/library/bb522489(v=sql.100).aspx
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

963 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