<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - CDC - Change Data Capture SQL Server 2008</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/previewImages/100/259892_100x75.jpg</url>
		<title>Channel 9 - CDC - Change Data Capture SQL Server 2008</title>
		<link></link>
	</image>
	<description>
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,&amp;nbsp;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 
</description>
	<link></link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 01:46:50 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 01:46:50 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[Very Nice Feature.<br />Myonly concern were what happened with distributed transaction<br /><br /><b>Also Does any body knows any such feature in Oracle?</b><br /><p>posted by kamii47</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633347783670000000</link>
		<pubDate>Tue, 01 Jan 2008 09:59:27 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633347783670000000</guid>
		<dc:creator>kamii47</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[Yes, it is an exiciting feature.<br />My concern is about the security trace: is it possibile to trace the current user application name ?<br />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.<br /><p>posted by MaurizioR</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633350588830000000</link>
		<pubDate>Fri, 04 Jan 2008 15:54:43 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633350588830000000</guid>
		<dc:creator>MaurizioR</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[
<blockquote>
<div class="quoteAuthor">MaurizioR wrote:</div>
<div class="quoteBody">&#65279;Yes, it is an exiciting feature.<br />My concern is about the security trace: is it possibile to trace the current user application name ?<br /><br />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.<br /></div>
</blockquote>
<br /><br />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.<br /><br />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.<br /><br />I would assume that you could do a similar thing with CDC?<br /><br />BOb<br /><p>posted by pilotbob</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633350999630000000</link>
		<pubDate>Sat, 05 Jan 2008 03:19:23 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633350999630000000</guid>
		<dc:creator>pilotbob</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[Hi,<br />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.<br /><br />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.<br /><br />Alternatively, an elegant solution could be:<br />SQL Server stores a dedicated variable inside the CDC table, i.e. CDCUserName.<br />By default, CDCUserName contains the connection user name (SQL&nbsp;auth or&nbsp;Win auth), so the console changes are logged too.<br /><br />At runtime, the application&nbsp;should be able to&nbsp;assign CDCUserName with the current application user for that specific&nbsp;session only. The mechanism should be compatible with connection pooling.<br /><br />Regards,<br /><br />Maurizio<p>posted by MaurizioR</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633353032430000000</link>
		<pubDate>Mon, 07 Jan 2008 11:47:23 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633353032430000000</guid>
		<dc:creator>MaurizioR</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[see also CDC helper - a GUI for enabling CDC and seeing changes<br /><a href="http://www.codeplex.com/CDCHelper">http&#58;&#47;&#47;www.codeplex.com&#47;CDCHelper</a><br /><p>posted by ignatandrei</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633536081290000000</link>
		<pubDate>Wed, 06 Aug 2008 08:28:49 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633536081290000000</guid>
		<dc:creator>ignatandrei</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[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?<br />How do I retrieve the CDC data for a single record modification by joining the master and details CDC tables?<br />Please suggest.<p>posted by SQLDev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633595065720000000</link>
		<pubDate>Mon, 13 Oct 2008 14:56:12 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633595065720000000</guid>
		<dc:creator>SQLDev</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[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<br />oracle &quot;change data capture&quot; for auditing.&nbsp; <a href="http://www.wisdomforce.com/products-DatabaseSync.html">http&#58;&#47;&#47;www.wisdomforce.com&#47;products-DatabaseSync.html</a><br />It is a log base CDC replication<br /><p>posted by DBAJohn</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633640124310000000</link>
		<pubDate>Thu, 04 Dec 2008 18:33:51 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633640124310000000</guid>
		<dc:creator>DBAJohn</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[
<p>Virtually every project that I've worked on has required full audit tracking as most of them are ecommerce or financial projects.&nbsp; Using an IsDeleted flag is the easiest and overall best way to go.&nbsp; Adding the field to an existing site and fully implementing
 it should take no more than a couple days.&nbsp; If it takes longer than that, you are doing something wrong.&nbsp; For tables that allow changes, we add the following fields at the end of the table:</p>
<p>[LastChangeBy] uniqueidentifier<br />[LastChangeDate] datetime<br />[IsDeleted] bit</p>
<p>For tables that do not allow changes (i.e. Payments), we add the following fields at the end of the table:</p>
<p>[CreatedBy] uniqueidentifier<br />[CreatedDate] datetime</p>
<p>This way we always know exactly who made what change, and when.</p>
<p>posted by mercsd</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633812156340000000</link>
		<pubDate>Sun, 21 Jun 2009 21:13:54 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c633812156340000000</guid>
		<dc:creator>mercsd</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[
<p>Hi,</p>
<p>It would be nice to know how you would apply this to a real world&nbsp;scenario. Is this used only for auditing?&nbsp;</p>
<p>If every change is captured, and updates are captured twice, it may lead to huge change tables over a relatively short time.&nbsp;</p>
<p>&nbsp;</p>
<p>Karim</p>
<p>posted by klameer</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c634132308240000000</link>
		<pubDate>Sun, 27 Jun 2010 10:20:24 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c634132308240000000</guid>
		<dc:creator>klameer</dc:creator>
	</item>
	<item>
		<title>Re: CDC - Change Data Capture SQL Server 2008</title>
		<description>
			<![CDATA[Hey I have sql 2005 and I have created triggers and table CDC to capture the data. everything functions good and the data is being updated in the _CDC tables. all i need to do now is to generate the updated data as a report - what should I do ......?<br />i need to show only the updated columns<br />when user selects the date periods and the person name - i need to display any updated info about that person during that period.<br />&nbsp;<br />thanks<br />&nbsp;<p>posted by justin</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c634237220570000000</link>
		<pubDate>Tue, 26 Oct 2010 20:34:17 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/ashishjaiman/CDC-Change-Data-Capture-SQL-Server-2008#c634237220570000000</guid>
		<dc:creator>justin</dc:creator>
	</item>
</channel>
</rss>