SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data Auditing


Data Auditing

Author
Message
Dave Sundell
Dave Sundell
SSC-Enthusiastic
SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)

Group: General Forum Members
Points: 197 Visits: 56
Looking for clarification to see if I understand Microsoft's "Change Tracking" correctly.
Microsoft's "Change Tracking" will identify "net" data changes and not "gross" data changes. For examples,
if we too have the 4 individual sets of batch committed transactions,

Batch and version 0:
begin tran
Insert records 1
Insert records 2
Insert records 3
Insert records 4
commit

Batch and version 1:
Insert records 5


Batch and version 2:
Delete record 4


Batch and version 3:
Update record 2


If we were to try to get each individual set of batch/version transactions, it is impossible. For example,
SELECT * FROM CHANGETABLE(CHANGES [table], 0) CT
SELECT * FROM CHANGETABLE(CHANGES [table], 1) CT
SELECT * FROM CHANGETABLE(CHANGES [table], 2) CT
SELECT * FROM CHANGETABLE(CHANGES [table], 3) CT
we don't get the 3 inserts, folowwed by the 1 insert, followed bu the 1 delete, and followed by the 1 update.
Instead something that represents the current state of the data.

The bottom line is, I was hoping that Microsoft's "Change Tracking" could help to pull an audit report
of data transactions from the trasnaction log.The true intent of Microsoft's "Change Tracking" is to support
data replication.

Am I correct?



jerry-621596
jerry-621596
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2235 Visits: 649
It almost sounds like you may want to look at the new Changed Data Capture functionality. This keeps track of changes to specific columns with a table.

Here is a pretty good overview of the difference and tradeoffs between Change Tracking and Changed Data Capture: http://technet.microsoft.com/en-us/magazine/2008.11.sql.aspx?pr=blog#id0110017
Dave Sundell
Dave Sundell
SSC-Enthusiastic
SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)

Group: General Forum Members
Points: 197 Visits: 56
Thanks for your response. I started to look at Change Data Capture (CDC) only to be stopped by the fact that it is an Enterprise edition only feature. The servers in question are Standard edition.

Thanks too for the article.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search