Network World
Saturday, November 22, 2008
DNSstuff.com
Get information about your IP
IP Information
50+ On-demand DNS and network tools

Brian Egler's SQL Server Strategies

Microsoft Subnet

Navigation

Need a Change? Try Katmai!

In the past, when we wrote applications that required the tracking of changing data, we typically implemented this through a series of Triggers and/or Timestamp columns. We could then write application code to copy changed data from one location to another using, for instance, sophisticated ETL tools such as Informatica or Microsoft's own Integration Services. This would not only be time-consuming but may be expensive too. Now in SQL Server 2008, Change Tracking and Change Data Capture can be enabled automatically at the Database and Table level.

These features allow SQL Server to track changes efficiently through its own internal system tables without the need for coding Triggers or defining extra columns. So what's the difference between Change Tracking and Change Data Capture? Well, if you are interested in what rows and columns have changed in a table and only require the current values to synchronize with another database then Change Tracking will suffice. Change Tracking uses a synchronous process to record the occurrence of changes in special system tables. Using Change Tracking functions such as CHANGETABLE, allow an application to determine changes at the row or column level and to detect change conflicts using a 2-way synchronization model, if necessary, between database tables. However, the historical changes are not recorded change by change. For instance, the fact that a row or column has changed multiple times will be tracked but the actual data value changes will not be captured. That is where Change Data Capture (CDC) takes over. CDC will capture all the data changes which make it ideal for enhancing ETL processes that would have had to be done manually before. The trade off is disk space; CDC uses extra storage to capture that changed data, which may amount to a significant amount of storage for very active tables. However, the processing that is automatically performed by SQL Server, at least, is asynchronous so should have minimal impact on performance.

Change Tracking and Change Data Capture are more cool features that Microsoft are giving away with Katmai. The Informaticas of the world have to go that extra mile to justify their license fees. Good for the consumer? Yes, as long as the competition can stay in business, that is.

Cheers
Brian

 

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <i> <b> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <br /> <br> <p>
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

About Brian Egler

Brian D. Egler, MCITP-DBA/MCSE/MCT, is currently an instructor with Global Knowledge, teaching various Microsoft training courses such as MCSE, MCITP-DBA and other SQL Server courses. He is a SQL specialist and an expert on Exchange, Windows, .Net and XML. Egler has been a technical instructor for 16 years and has more than 10 years experience with SQL Server, data modeling, database design, application development including IMS, DB2, Sybase. In addition, he is member of the Project Management Institute.

RSS feed

Egler's archive.

Global Knowledge sponsors a monthly giveaway on Microsoft Subnet. Check out the Microsoft Subnet home page for details.

Global Knowledge offers a comprehensive catalog of Microsoft courses, including:

MCITP: Database Administrator Boot Camp
SQL Server 2005 Administration
MCITP: Enterprise Administrator Boot Camp
More Microsoft Courses

Microsoft Subnet

RSS feed Microsoft news RSS feed

The opinions expressed in this Weblog are those of the writer and may not represent the opinions of Network World.

Advertisement: