CDC or Change data capture is a new feature in SQL Server 2008, which is an ability to record changes to table data into another table without writing triggers or some other mechanism, Change data capture records the changes like insert, update, and delete to a table in SQL server thus making the details of the changes available in relational format.Find more information on the Topic
http://www.microsoft.com/sql/2008/prodinfo/download.mspx
https://connect.microsoft.com/SQLServer/content/content.aspx?ContentID=5507
http://blogs.msdn.com/usisvdehttp://blogs.msdn.com/ajaiman
MaurizioR wrote:Yes, it is an exiciting feature.My concern is about the security trace: is it possibile to trace the current user application name ?Normally we connect application to SQL using a unique trusted connection (windows authentication), but we are interested to log all db changes along with the current logged (application) user; otherwise we know the db changes but not who made them.
Virtually every project that I've worked on has required full audit tracking as most of them are ecommerce or financial projects. Using an IsDeleted flag is the easiest and overall best way to go. Adding the field to an existing site and fully implementing it should take no more than a couple days. If it takes longer than that, you are doing something wrong. For tables that allow changes, we add the following fields at the end of the table:
[LastChangeBy] uniqueidentifier[LastChangeDate] datetime[IsDeleted] bit
For tables that do not allow changes (i.e. Payments), we add the following fields at the end of the table:
[CreatedBy] uniqueidentifier[CreatedDate] datetime
This way we always know exactly who made what change, and when.