<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for CDC - Change Data Capture SQL Server 2008 (ashishjaiman on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/posts/ashishjaiman/cdc-change-data-capture-sql-server-2008/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for CDC - Change Data Capture SQL Server 2008 (ashishjaiman on Channel 9)</title><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/</link></image><description>CDC - Change Data Capture SQL Server 2008</description><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/</link><language>en-us</language><pubDate>Sun, 21 Jun 2009 21:13:54 GMT</pubDate><lastBuildDate>Sun, 21 Jun 2009 21:13:54 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>&lt;p&gt;Virtually every project that I've worked on has required full audit tracking as most of them are ecommerce or financial projects.&amp;nbsp; Using an IsDeleted flag is the easiest and overall best way to go.&amp;nbsp; Adding the field to an existing site and fully implementing it should take no more than a couple days.&amp;nbsp; If it takes longer than that, you are doing something wrong.&amp;nbsp; For tables that allow changes, we add the following fields at the end of the table:&lt;/p&gt;
&lt;p&gt;[LastChangeBy] uniqueidentifier&lt;br /&gt;[LastChangeDate] datetime&lt;br /&gt;[IsDeleted] bit&lt;/p&gt;
&lt;p&gt;For tables that do not allow changes (i.e. Payments), we add the following fields at the end of the table:&lt;/p&gt;
&lt;p&gt;[CreatedBy] uniqueidentifier&lt;br /&gt;[CreatedDate] datetime&lt;/p&gt;
&lt;p&gt;This way we always know exactly who made what change, and when.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=474837</link><pubDate>Sun, 21 Jun 2009 21:13:54 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=474837</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/474837/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Virtually every project that I've worked on has required full audit tracking as most of them are ecommerce or financial projects.&amp;nbsp; Using an IsDeleted flag is the easiest and overall best way to go.&amp;nbsp; Adding the field to an existing site and fully implementing it should take no more than a&amp;#8230;</evnet:previewtext><dc:creator>mercsd</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/474837/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>wisdomforce DatabaseSync has a feature for transactional audit when source is Oracle and destination could be SQL Server. The destination table can have a columns with previous data and new value along with transaction date and all other details about this transaction&lt;br&gt;oracle "change data capture" for auditing.&amp;nbsp; http://www.wisdomforce.com/products-DatabaseSync.html&lt;br&gt;It is a log base CDC replication&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=447054</link><pubDate>Thu, 04 Dec 2008 18:33:51 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=447054</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/447054/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>wisdomforce DatabaseSync has a feature for transactional audit when source is Oracle and destination could be SQL Server. The destination table can have a columns with previous data and new value along with transaction date and all other details about this transactionoracle "change data capture" for&amp;#8230;</evnet:previewtext><dc:creator>DBAJohn</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/447054/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>How do we use CDC for related tables such as a master and detail where master having the PK and some basic details such as created by created on etc and the details having the entity specific attributes?&lt;BR&gt;How do I retrieve the CDC data for a single record modification by joining the master and details CDC tables?&lt;BR&gt;Please suggest.</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=432733</link><pubDate>Mon, 13 Oct 2008 14:56:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=432733</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/432733/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>How do we use CDC for related tables such as a master and detail where master having the PK and some basic details such as created by created on etc and the details having the entity specific attributes?How do I retrieve the CDC data for a single record modification by joining the master and details CDC tables?Please suggest.</evnet:previewtext><dc:creator>SQLDev</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/432733/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>see also CDC helper - a GUI for enabling CDC and seeing changes&lt;br&gt;http://www.codeplex.com/CDCHelper&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=419855</link><pubDate>Wed, 06 Aug 2008 08:28:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=419855</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/419855/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>see also CDC helper - a GUI for enabling CDC and seeing changeshttp://www.codeplex.com/CDCHelper</evnet:previewtext><dc:creator>Ignat Andrei</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/419855/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>Hi,&lt;BR&gt;We already implement a similar mechanism inside our product: for each table, dedicated fields are in charge to store the InserUserName and LastUpdatedUser. We can extend them, adding the DeletedUserName column.&lt;BR&gt;&lt;BR&gt;Anyway it is not acceptable to implement a logical delete for us, while it is possible to think to a solution that updates the DeletedUserName before physically deleting the record.&lt;BR&gt;&lt;BR&gt;Alternatively, an elegant solution could be:&lt;BR&gt;SQL Server stores a dedicated variable inside the CDC table, i.e. CDCUserName.&lt;BR&gt;By default, CDCUserName contains the connection user name (SQL&amp;nbsp;auth or&amp;nbsp;Win auth), so the console changes are logged too.&lt;BR&gt;&lt;BR&gt;At runtime, the application&amp;nbsp;should be able to&amp;nbsp;assign CDCUserName with the current application user for that specific&amp;nbsp;session only. The mechanism should be compatible with connection pooling.&lt;BR&gt;&lt;BR&gt;Regards,&lt;BR&gt;&lt;BR&gt;Maurizio</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376693</link><pubDate>Mon, 07 Jan 2008 11:47:23 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376693</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/376693/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi,We already implement a similar mechanism inside our product: for each table, dedicated fields are in charge to store the InserUserName and LastUpdatedUser. We can extend them, adding the DeletedUserName column.Anyway it is not acceptable to implement a logical delete for us, while it is possible&amp;#8230;</evnet:previewtext><dc:creator>MaurizioR</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/376693/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;MaurizioR wrote:&lt;/div&gt;&lt;div&gt;﻿Yes, it is an exiciting feature.&lt;BR&gt;My concern is about the security trace: is it possibile to trace the current user application name ?&lt;BR&gt;&lt;BR&gt;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.&lt;BR&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;With triggers we would do this by getting the user_name from sql and we could insert it into the audit tables. This works well as long as you have a two tier application with each user having thier own connection.&lt;BR&gt;&lt;BR&gt;With 3-Tier or web apps you are unable to use the user_name since you are probably using a single user id or connection pooling. So, what we would do is add a field or fields to each table that the application would populate on each insert/update. This way the audit data could capture who made the change. For delete I guess you would have to get creative like not allowing record deletes and just setting a delete flag... or you could update the record with all blank/null values prior to deleting it.&lt;BR&gt;&lt;BR&gt;I would assume that you could do a similar thing with CDC?&lt;BR&gt;&lt;BR&gt;BOb&lt;BR&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376403</link><pubDate>Sat, 05 Jan 2008 03:19:23 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376403</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/376403/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>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&amp;#8230;</evnet:previewtext><dc:creator>pilotbob</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/376403/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>Yes, it is an exiciting feature.&lt;BR&gt;My concern is about the security trace: is it possibile to trace the current user application name ?&lt;BR&gt;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.&lt;BR&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376323</link><pubDate>Fri, 04 Jan 2008 15:54:43 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=376323</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/376323/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>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&amp;#8230;</evnet:previewtext><dc:creator>MaurizioR</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/376323/Trackback.aspx</trackback:ping></item><item><title>Re: CDC - Change Data Capture SQL Server 2008</title><description>Very Nice Feature.&lt;br&gt;Myonly concern were what happened with distributed transaction&lt;br&gt;&lt;br&gt;&lt;b&gt;Also Does any body knows any such feature in Oracle?&lt;/b&gt;&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=375799</link><pubDate>Tue, 01 Jan 2008 09:59:27 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/?CommentID=375799</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/375799/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Very Nice Feature.Myonly concern were what happened with distributed transactionAlso Does any body knows any such feature in Oracle?</evnet:previewtext><dc:creator>kamii47</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/375799/Trackback.aspx</trackback:ping></item></channel></rss>