<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MSFTDPProdSamples Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=Home</link><description>MSFTDPProdSamples Wiki Rss Description</description><item><title>New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)"</title><link>http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)&amp;ANCHOR#C19815</link><description>For &amp;#39;Considerations for Installing SQL Server Samples and Sample Databases&amp;#39; I found that link http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;ms161556.aspx&amp;#10;What would be microsoft without Google&amp;#63;</description><author>ollio</author><pubDate>Tue, 31 May 2011 11:52:34 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)" 20110531115234A</guid></item><item><title>New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)"</title><link>http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)&amp;ANCHOR#C19814</link><description>Hint, I should look at&amp;#58; &amp;#39;Considerations for Installing SQL Server Samples and Sample Databases&amp;#39;, but I don&amp;#39;t get a clue nor a link, where to find that information. Bad marketing..</description><author>ollio</author><pubDate>Tue, 31 May 2011 11:51:00 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)" 20110531115100A</guid></item><item><title>New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)"</title><link>http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)&amp;ANCHOR#C19813</link><description>This installation is idot. Now clue in which path the installation goes, nor about the names of any files installed. Pure Rubbish, poor quality.</description><author>ollio</author><pubDate>Tue, 31 May 2011 11:48:27 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2008!Readme_Displaying Column and Catalog Metadata for Sparse Columns (OLE DB)" 20110531114827A</guid></item><item><title>Updated Wiki: Home</title><link>http://msftdpprodsamples.codeplex.com/wikipage?version=47</link><description>&lt;div class="wikidoc"&gt;&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Data Programming Product Samples&lt;br /&gt;&lt;br /&gt;This project contains Data Programming samples released with Microsoft SQL Server product. These samples are in the following five categories: ADO, ODBC, and OLEDB. If you are interested in contributing Data Programming samples, please let us know by posting in the developers' forum.&lt;br /&gt;&lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTDPProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt;&lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;ADO.NET&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Large Binary Object (LOB) Handling using ADO.Net &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21Large%20Binary%20Object%20%28LOB%29%20Handling%20using%20ADO.Net&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; MARS &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21Readme_MARS&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;ODBC&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; BulkCopyFormatAndData &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20BulkCopyFormatAndData&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20BulkCopyFormatAndData&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to bulk copy a SELECT result set (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20bulk%20copy%20a%20SELECT%20result%20set%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20bulk%20copy%20a%20SELECT%20result%20set%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to bulk copy data from program variables (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20bulk%20copy%20data%20from%20program%20variables%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20bulk%20copy%20data%20from%20program%20variables%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to bulk copy without a format file (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20bulk%20copy%20without%20a%20format%20file%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20bulk%20copy%20without%20a%20format%20file%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to create a bulk copy format file (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20create%20a%20bulk%20copy%20format%20file%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20create%20a%20bulk%20copy%20format%20file%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to log long-running queries (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20log%20long-running%20queries%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20log%20long-running%20queries%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to process ODBC errors (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20process%20ODBC%20errors%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20process%20ODBC%20errors%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to process return codes and output parameters (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20process%20return%20codes%20and%20output%20parameters%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20process%20return%20codes%20and%20output%20parameters%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to profile driver performance data (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20profile%20driver%20performance%20data%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20profile%20driver%20performance%20data%20%28ODBC%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; ODBC Table-Valued Parameters &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20ODBC%20Table-Valued%20Parameters&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; UseDataAtExecutionColumns &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20UseDataAtExecutionColumns&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20UseDataAtExecutionColumns&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; UseDataAtExecutionParameters &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20UseDataAtExecutionParameters&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20UseDataAtExecutionParameters&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; ODBC Date Time &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_ODBC%20Date%20Time&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; ODBC_SparseCols &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_ODBC_SparseCols&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;OLE DB&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Enhanced Date/Time Features in SQL Server 2008 &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Enhanced%20Date%2fTime%20Features%20in%20SQL%20Server%202008&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Execute stored procedure (using ODBC CALL syntax) and process return codes and output parameters (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20Execute%20stored%20procedure%20%28using%20ODBC%20CALL%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Execute%20stored%20procedure%20%28using%20ODBC%20CALL%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Execute stored procedure (using RPC syntax) and process return codes and output parameters (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20Execute%20stored%20procedure%20%28using%20RPC%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Execute%20stored%20procedure%20%28using%20RPC%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Execute user-defined function and process return code (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20Execute%20user-defined%20function%20and%20process%20return%20code%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Execute%20user-defined%20function%20and%20process%20return%20code%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Fetching Columns Using IRow::GetColumns (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Fetching Columns Using IRow::GetColumns (or IRow::Open) and ISequentialStream &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28or%20IRow%3a%3aOpen%29%20and%20ISequentialStream&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28or%20IRow%3a%3aOpen%29%20and%20ISequentialStream&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to bulk copy data using IRowsetFastLoad (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20bulk%20copy%20data%20using%20IRowsetFastLoad%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20bulk%20copy%20data%20using%20IRowsetFastLoad%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to enumerate OLE DB data sources (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20enumerate%20OLE%20DB%20data%20sources%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20enumerate%20OLE%20DB%20data%20sources%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to fetch rows from a result set (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20fetch%20rows%20from%20a%20result%20set%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20fetch%20rows%20from%20a%20result%20set%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to obtain FAST_FORWARD cursor &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20obtain%20FAST_FORWARD%20cursor&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20obtain%20FAST_FORWARD%20cursor&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to retrieve rows using bookmarks (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20retrieve%20rows%20using%20bookmarks%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20retrieve%20rows%20using%20bookmarks%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; How to set large data (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2005%21README%20How%20to%20set%20large%20data%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20How%20to%20set%20large%20data%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Read filestream column to file using IBCPSession (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Read%20filestream%20column%20to%20file%20using%20IBCPSession%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Retrieve data from Filestream column using ISequentialStream (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20Retrieve%20data%20from%20Filestream%20column%20using%20ISequentialStream%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Send data to a filestream column using ISequentialStream bound to ICommandText parameter (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Send%20data%20to%20a%20filestream%20column%20using%20ISequentialStream%20bound%20to%20ICommandText%20parameter%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Use IRowsetFastUpload interface to send data to a filestream column (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21README%20Use%20IRowsetFastUpload%20interface%20to%20send%20data%20to%20a%20filestream%20column%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Changing a SQL Server Authentication User Password (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_Changing%20a%20SQL%20Server%20Authentication%20User%20Password%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Displaying Column and Catalog Metadata for Sparse Columns (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_Displaying%20Column%20and%20Catalog%20Metadata%20for%20Sparse%20Columns%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Integrated Kerberos Authentication Sample (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_Integrated%20Kerberos%20Authentication%20Sample%20%28OLE%20DB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Sending BLOB Data to SQL SERVER Using IROWSETFASTLOAD and ISEQUENTIALSTREAM &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_Sending%20BLOB%20Data%20to%20SQL%20SERVER%20Using%20IROWSETFASTLOAD%20and%20ISEQUENTIALSTREAM&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Table-Valued Parameters &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_Table-Valued%20Parameters&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;Programmability&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Change Data Capture for Specified Interval Package Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20Change%20Data%20Capture%20for%20Specified%20Interval%20Package%20Sample&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Change Data Capture since Last Request Package &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20Change%20Data%20Capture%20since%20Last%20Request%20Package&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Large UDT (OLEDB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Large%20UDT%20%28OLEDB%29&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Large UDT ODBC &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20Large%20UDT%20ODBC&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; ODBC Spatial Storage &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftdpprodsamples.codeplex.com/wikipage?title=SS2008%21ODBC%20Spatial%20Storage&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>bonniefe</author><pubDate>Tue, 08 Dec 2009 23:49:24 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20091208114924P</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for Spatial Storage
&lt;/h2&gt; &lt;br /&gt;February 13, 2009&lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;The source code for this sample.  Click on the &lt;b&gt;Releases&lt;/b&gt; tab above then click on either the appropriate installer for the computer you are using or click on the zip file for any machine architecture.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
USE tempdb
GO
 
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')
   DROP TABLE SpatialSample
 
CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)
GO 
&lt;/pre&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; sqlcmd -E -I -i Scripts\setup.sql &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; MSBuild odbc_spatial.sln &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Sat, 14 Feb 2009 01:24:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20090214012450A</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for Spatial Storage
&lt;/h2&gt; &lt;br /&gt;February 13, 2009&lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
USE tempdb
GO
 
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')
   DROP TABLE SpatialSample
 
CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)
GO 
&lt;/pre&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; sqlcmd -E -I -i Scripts\setup.sql &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; MSBuild odbc_spatial.sln &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Sat, 14 Feb 2009 01:22:30 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20090214012230A</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for Spatial Storage
&lt;/h2&gt; &lt;br /&gt;February 13, 2009&lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
 
USE tempdb
GO
 
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')
   DROP TABLE SpatialSample
 
CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)
GO 
&lt;/pre&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; sqlcmd -E -I -i Scripts\setup.sql &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:&lt;/li&gt;
&lt;/ul&gt;&lt;span class="codeInline"&gt; MSBuild odbc_spatial.sln &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Sat, 14 Feb 2009 01:21:44 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20090214012144A</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for Spatial Storage
&lt;/h2&gt; &lt;br /&gt;February 13, 2009&lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
 
USE tempdb
GO
 
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')
   DROP TABLE SpatialSample
 
CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)
GO 
&lt;/pre&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;span class="codeInline"&gt; sqlcmd -E -I -i Scripts\setup.sql &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;span class="codeInline"&gt; MSBuild odbc_spatial.sln &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Sat, 14 Feb 2009 01:20:34 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20090214012034A</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme&lt;i&gt;Spatial&lt;/i&gt;Storage
&lt;/h2&gt; &lt;br /&gt;February 13, 2009&lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
 
USE tempdb
GO
 
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')
   DROP TABLE SpatialSample
 
CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)
GO 
&lt;/pre&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;span class="codeInline"&gt; sqlcmd -E -I -i Scripts\setup.sql &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;span class="codeInline"&gt; MSBuild odbc_spatial.sln &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Sat, 14 Feb 2009 01:20:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20090214012002A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=Home&amp;version=46</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Data Programming Product Samples&lt;br /&gt; &lt;br /&gt;This project contains Data Programming samples released with Microsoft SQL Server product. These samples are in the following five categories: ADO, ODBC, and OLEDB. If you are interested in contributing Data Programming samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTDPProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;ADO.NET&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Large Binary Object (LOB) Handling using ADO.Net &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21Large%20Binary%20Object%20%28LOB%29%20Handling%20using%20ADO.Net&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; MARS &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21Readme_MARS&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;ODBC&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; BulkCopyFormatAndData &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20BulkCopyFormatAndData&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20BulkCopyFormatAndData&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to bulk copy a SELECT result set (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20bulk%20copy%20a%20SELECT%20result%20set%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20bulk%20copy%20a%20SELECT%20result%20set%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to bulk copy data from program variables (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20bulk%20copy%20data%20from%20program%20variables%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20bulk%20copy%20data%20from%20program%20variables%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to bulk copy without a format file (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20bulk%20copy%20without%20a%20format%20file%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20bulk%20copy%20without%20a%20format%20file%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to create a bulk copy format file (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20create%20a%20bulk%20copy%20format%20file%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20create%20a%20bulk%20copy%20format%20file%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to log long-running queries (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20log%20long-running%20queries%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20log%20long-running%20queries%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to process ODBC errors (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20process%20ODBC%20errors%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20process%20ODBC%20errors%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to process return codes and output parameters (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20process%20return%20codes%20and%20output%20parameters%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20process%20return%20codes%20and%20output%20parameters%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to profile driver performance data (ODBC) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20profile%20driver%20performance%20data%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20profile%20driver%20performance%20data%20%28ODBC%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ODBC Table-Valued Parameters &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20ODBC%20Table-Valued%20Parameters&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; UseDataAtExecutionColumns &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20UseDataAtExecutionColumns&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20UseDataAtExecutionColumns&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; UseDataAtExecutionParameters &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20UseDataAtExecutionParameters&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20UseDataAtExecutionParameters&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ODBC Date Time &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_ODBC%20Date%20Time&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ODBC_SparseCols &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_ODBC_SparseCols&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;OLE DB&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Enhanced Date/Time Features in SQL Server 2008 &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Enhanced%20Date%2fTime%20Features%20in%20SQL%20Server%202008&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Execute stored procedure (using ODBC CALL syntax) and process return codes and output parameters (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20Execute%20stored%20procedure%20%28using%20ODBC%20CALL%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Execute%20stored%20procedure%20%28using%20ODBC%20CALL%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Execute stored procedure (using RPC syntax) and process return codes and output parameters (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20Execute%20stored%20procedure%20%28using%20RPC%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Execute%20stored%20procedure%20%28using%20RPC%20syntax%29%20and%20process%20return%20codes%20and%20output%20parameters%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Execute user-defined function and process return code (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20Execute%20user-defined%20function%20and%20process%20return%20code%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Execute%20user-defined%20function%20and%20process%20return%20code%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Fetching Columns Using IRow::GetColumns (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Fetching Columns Using IRow::GetColumns (or IRow::Open) and ISequentialStream &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28or%20IRow%3a%3aOpen%29%20and%20ISequentialStream&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Fetching%20Columns%20Using%20IRow%3a%3aGetColumns%20%28or%20IRow%3a%3aOpen%29%20and%20ISequentialStream&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to bulk copy data using IRowsetFastLoad (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20bulk%20copy%20data%20using%20IRowsetFastLoad%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20bulk%20copy%20data%20using%20IRowsetFastLoad%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to enumerate OLE DB data sources (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20enumerate%20OLE%20DB%20data%20sources%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20enumerate%20OLE%20DB%20data%20sources%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to fetch rows from a result set (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20fetch%20rows%20from%20a%20result%20set%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20fetch%20rows%20from%20a%20result%20set%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to obtain FAST_FORWARD cursor &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20obtain%20FAST_FORWARD%20cursor&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20obtain%20FAST_FORWARD%20cursor&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to retrieve rows using bookmarks (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20retrieve%20rows%20using%20bookmarks%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20retrieve%20rows%20using%20bookmarks%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; How to set large data (OLE DB) &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005%21README%20How%20to%20set%20large%20data%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20How%20to%20set%20large%20data%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Read filestream column to file using IBCPSession (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Read%20filestream%20column%20to%20file%20using%20IBCPSession%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Retrieve data from Filestream column using ISequentialStream (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Retrieve%20data%20from%20Filestream%20column%20using%20ISequentialStream%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Send data to a filestream column using ISequentialStream bound to ICommandText parameter (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Send%20data%20to%20a%20filestream%20column%20using%20ISequentialStream%20bound%20to%20ICommandText%20parameter%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Use IRowsetFastUpload interface to send data to a filestream column (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21README%20Use%20IRowsetFastUpload%20interface%20to%20send%20data%20to%20a%20filestream%20column%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Changing a SQL Server Authentication User Password (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Changing%20a%20SQL%20Server%20Authentication%20User%20Password%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Displaying Column and Catalog Metadata for Sparse Columns (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Displaying%20Column%20and%20Catalog%20Metadata%20for%20Sparse%20Columns%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Integrated Kerberos Authentication Sample (OLE DB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Integrated%20Kerberos%20Authentication%20Sample%20%28OLE%20DB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Sending BLOB Data to SQL SERVER Using IROWSETFASTLOAD and ISEQUENTIALSTREAM &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Sending%20BLOB%20Data%20to%20SQL%20SERVER%20Using%20IROWSETFASTLOAD%20and%20ISEQUENTIALSTREAM&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Table-Valued Parameters &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Table-Valued%20Parameters&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Programmability&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture for Specified Interval Package Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Change%20Data%20Capture%20for%20Specified%20Interval%20Package%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture since Last Request Package &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Change%20Data%20Capture%20since%20Last%20Request%20Package&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Large UDT (OLEDB) &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Large%20UDT%20%28OLEDB%29&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Large UDT ODBC &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Large%20UDT%20ODBC&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ODBC Spatial Storage &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21ODBC%20Spatial%20Storage&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;
&lt;/div&gt;</description><author>ReedMe</author><pubDate>Thu, 29 Jan 2009 23:02:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20090129110202P</guid></item><item><title>Updated Wiki: SS2008!ODBC Spatial Storage</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!ODBC Spatial Storage&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme&lt;i&gt;Spatial&lt;/i&gt;Storage
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample inserts two rows into a table with a geography column from a WellKnownBinary (WKB) using 2 different bindings (SQL&lt;i&gt;C&lt;/i&gt;CHAR and SQL&lt;i&gt;C&lt;/i&gt;BINARY). Then it selects one row from that table and uses &lt;b&gt;::STAsText()&lt;/b&gt; to display it.&lt;br /&gt;The WKB is 0x01010000000700ECFAD03A4C4001008000B5DF07C0 and the application prints to the console: POINT(56.4595 -2.9842).&lt;br /&gt;This sample does not require an ODBC data source, but the sample runs, by default, on the local instance of SQL Server.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about spatial storage, see &lt;b&gt;Designing and Implementing Spatial Storage&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a non-default instance, change the Server attribute in odbc_spatial.cpp.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL statements, which you can find in the sample's scripts directory:   * {&amp;quot; use tempdb&lt;/li&gt;
&lt;/ul&gt;GO&lt;br /&gt; &lt;br /&gt;IF EXISTS (SELECT name FROM sysobjects WHERE name = 'SpatialSample')&lt;br /&gt;   DROP TABLE SpatialSample&lt;br /&gt; &lt;br /&gt;CREATE TABLE SpatialSample (Name varchar(10), Geog Geography)&lt;br /&gt;GO &amp;quot;}* In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:   *  sqlcmd -E -I -i Scripts\setup.sql *&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the odbc_spatial.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the odbc_spatial.sln file:   *  MSBuild odbc_spatial.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_spatial.exe.  The sample outputs the following: POINT(56.4595 -2.9842).&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:03:43 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ODBC Spatial Storage 20081106110343P</guid></item><item><title>Updated Wiki: SS2008!Readme Large UDT ODBC</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Readme Large UDT ODBC&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme&lt;i&gt;Large&lt;/i&gt;UDT_ODBC
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample solution contains two projects. One project creates an assembly (DLL) from C# source code. This assembly contains the CLR type. A table will be added to the database. A column in the table will be of a type defined in the assembly, By default, this sample will use the master database. The second project is a native C++ application that reads data from the table.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about large UDTs, see &lt;b&gt;Large CLR User-Defined Types (ODBC)&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including the Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain the .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;Build this sample as follows:&lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Build the C# project (LargeStringUDT). This project creates a DLL. The project has a post-build event that copies the DLL to the root directory of your C:\ drive. If your C:\ drive is not available when you run this sample, modify the post-build event to use a different drive.  &lt;/li&gt;&lt;li&gt; Run the following Transact-SQL script:   * {&amp;quot; USE [MASTER]&lt;/li&gt;
&lt;/ol&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE ASSEMBLY LargeStringUDT&lt;br /&gt;FROM 'C:\LargeStringUDT.dll'&lt;br /&gt;WITh PERMISSION_SET=SAFE;&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE TYPE dbo.LargeStringUDT &lt;br /&gt;EXTERNAL NAME LargeStringUDT.&lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=LargeStringUDT&amp;amp;referringTitle=SS2008%21Readme%20Large%20UDT%20ODBC"&gt;LargeStringUDT&lt;/a&gt;;&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE TABLE dbo.LargeStringUDTs&lt;br /&gt;(ID int IDENTITY(1,1) PRIMARY KEY, LargeString LargeStringUDT)&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (CONVERT(LargeStringUDT, 'This is the first string'));&lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (CONVERT(LargeStringUDT, 'This is the second string'));&lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (Convert(LargeStringUDT, 'This is the third string'));&lt;br /&gt;GO &amp;quot;}* This script references the DLL created by the C# project.  So, if you modified the post-build event to change the directory location of the DLL, also modify this script.  &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Build the C++ project (FetchRowsWithLargeUDTTypes).  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL&lt;u&gt;F5) on the C+&lt;/u&gt; project.  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke FetchRowsWithLargeUDTTypes.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:03:28 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme Large UDT ODBC 20081106110328P</guid></item><item><title>Updated Wiki: SS2008!Large UDT (OLEDB)</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Large UDT (OLEDB)&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme&lt;i&gt;Large&lt;/i&gt;UDT_OLEDB
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample solution contains two projects. One project creates an assembly (DLL) from C# source code. This assembly contains the CLR type. A table will be added to the database. A column in the table will be of a type defined in the assembly, By default, this sample will use the master database. The second project is a native C++ application that reads data from the table.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about large UDTs, see &lt;b&gt;Large CLR User-Defined Types (OLE DB)&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including the Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain the .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;Build this sample as follows:&lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Build the C# project (LargeStringUDT). This project creates a DLL. The project has a post-build event that copies the DLL to the root directory of your C:\ drive. If your C:\ drive is not available when you run this sample, modify the post-build event to use a different drive.  &lt;/li&gt;&lt;li&gt; Run the following Transact-SQL script:   * {&amp;quot; USE [MASTER]&lt;/li&gt;
&lt;/ol&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE ASSEMBLY LargeStringUDT&lt;br /&gt;FROM 'C:\LargeStringUDT.dll'&lt;br /&gt;WITh PERMISSION_SET=SAFE;&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE TYPE dbo.LargeStringUDT &lt;br /&gt;EXTERNAL NAME LargeStringUDT.&lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=LargeStringUDT&amp;amp;referringTitle=SS2008%21Large%20UDT%20%28OLEDB%29"&gt;LargeStringUDT&lt;/a&gt;;&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE TABLE dbo.LargeStringUDTs&lt;br /&gt;(ID int IDENTITY(1,1) PRIMARY KEY, LargeString LargeStringUDT)&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (CONVERT(LargeStringUDT, 'This is the first string'));&lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (CONVERT(LargeStringUDT, 'This is the second string'));&lt;br /&gt;INSERT INTO dbo.LargeStringUDTs (LargeString) VALUES (Convert(LargeStringUDT, 'This is the third string'));&lt;br /&gt;GO &amp;quot;}* This script references the DLL created by the C# project.  So, if you modified the post-build event to change the directory location of the DLL, also modify this script.  &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Build the C++ project (FetchRowsWithLargeUDTTypes).  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL&lt;u&gt;F5) on the C+&lt;/u&gt; project.  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke FetchRowsWithLargeUDTTypes.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:03:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Large UDT (OLEDB) 20081106110314P</guid></item><item><title>Updated Wiki: SS2008!Readme Change Data Capture since Last Request Package</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Readme Change Data Capture since Last Request Package&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Change Data Capture for Specified Interval Package Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample works only with SQL Server 2008 Enterprise and SQL Server 2008 Developer. This sample will not work with any version of SQL Server earlier than SQL Server 2008, or on any edition other than SQL Server 2008 Enterprise or SQL Server 2008 Developer. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This sample illustrates how to incorporate change data capture technology into an extraction, transformation, and loading (ETL) process that uses Integration Services. This sample is a complete end-to-end sample that includes both workload generation and the initial load of target tables as part of the sample setup. After the initial load finishes, the master package runs periodically, gathers the changes that have occurred since the last request, and then updates the target replicas to reflect those changes.&lt;br /&gt;The source database is the AdventureWorks2008 database. This sample uses existing tables in the AdventureWorks2008 database to populate comparable destination tables in the CDCSample schema in the AdventureWorksDW2008 database.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample uses &lt;b&gt;datetime&lt;/b&gt; values to specify the range for the change data capture functions that request change data. To see how to use log sequence numbers (LSNs) to specify the query range when you query for change data, see &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Change%20Data%20Capture%20for%20Specified%20Interval%20Package%20Sample&amp;amp;referringTitle=SS2008%21Readme%20Change%20Data%20Capture%20since%20Last%20Request%20Package"&gt;Readme_Change Data Capture since Last Request Package Sample&lt;/a&gt;. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;To run this sample package, the following requirements must be met:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample package and data files that the sample uses must be installed on the local hard disk drive. You can download the sample from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=131204" class="externalLink"&gt;Microsoft SQL Server Product Samples: Integration Services&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the AdventureWorks2008 OLTP and AdventureWorksDW2008 databases.  &lt;/li&gt;&lt;li&gt; You must install SQL Server Database Engine to install support for the change data capture feature. You must also install Replication when you install SQL Server Database Engine.  &lt;/li&gt;&lt;li&gt; If you intend only to run the sample from the command line, you must install Integration Services.   &lt;/li&gt;&lt;li&gt; If you want to open and run the sample in SSIS Designer, you must install Business Intelligence Development Studio.   For more information about how to install samples, see &amp;quot;Installing Sample Integration Services Packages&amp;quot; in SQL Server Books Online. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location of the Sample Files
&lt;/h3&gt;This sample consists of the following files:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The solution file and Readme file.  &lt;/li&gt;&lt;li&gt; The project files and packages.  &lt;/li&gt;&lt;li&gt; The Transact-SQL script files.  &lt;/li&gt;
&lt;/ul&gt;&lt;h5&gt;
Location of the Solution File and Readme File
&lt;/h5&gt;The following folder is the default location of the solution file and Readme file for this sample:&lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture for Specified Interval Package Sample\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture in Integration Services Sample.sln&lt;/td&gt;&lt;td&gt; The solution file for this sample. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Readme_ChangeDataCaptureforSpecifiedIntervalPackageSample.htm&lt;/td&gt;&lt;td&gt; The Readme file for this sample. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Location of the Project Files and Packages
&lt;/h5&gt;The following folder is the default location of the project files and packages for this sample:&lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture for Specified Interval Package Sample\Change Data Capture in Integration Services Sample\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture in Integration Services Sample.dtproj&lt;/td&gt;&lt;td&gt; The project file for this sample. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| SetupCDCSample.dtsx| The setup package and sample test harness. &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  If you did not install this sample to the default location, you will have to modify the package variables,  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  and  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt; , to correspond to the appropriate installation path. The default value of the  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  package variable is &lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\. The value of the  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt;  package variable derives from the value of the  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  package variable. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; |&lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; MasterCDC.dtsx&lt;/td&gt;&lt;td&gt; The master package that performs an incremental load cycle. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the Customer table for the extraction interval, and then applies those changes to the destination.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the CreditCard table for the extraction interval, and then applies those changes to the destination. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWorkOrderExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the WorkOrder table for the extraction interval,  and then applies those changes to the destination. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Location of the Transact-SQL Script Files
&lt;/h5&gt;The following folder is the default location of the Transact-SQL script files for this sample: &lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture for Specified Interval Package Sample\Change Data Capture in Integration Services Sample\Scripts\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCSetupTables.sql&lt;/td&gt;&lt;td&gt; The sample setup file.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to the CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to the CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to the CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to the CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWorkOrderInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to the CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWOrkOrderModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to the CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the package, you can use either the &lt;b&gt;dtexec&lt;/b&gt; command prompt utility (dtexec.exe) or BI Development Studio.&lt;br /&gt;  To run the package by using the dtexec utility Open a Command Prompt window.Use the Change Directory command, cd, to change the directory that contains the dtexec utility.The default location of the dtexec utility is &amp;lt;drive&amp;gt;:\Program Files\Microsoft SQL Server\100\DTS\Binn.At the command prompt, type the following command: dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture for Specified Interval Package Sample\Change Data Capture in Integration Services Sample\SetupCDCSample.dtsx&amp;quot;Press ENTER.For more information about how to use the dtexec utility run a package, see the topic, &amp;quot;dtexec Utility,&amp;quot; in SQL Server Books Online.   To run the package in Business Intelligence Development Studio In BI Development Studio, on the File menu, point to Open, and then click Project/Solution.For Files of type, select Integration Services Project Files (.dtproj). Then, locate the Change Data Capture for Specified Interval Package Sample* folder, and double-click the file, Change Data Capture in Integration Services Sample.dtproj.In Solution Explorer, in the SSIS Packages folder, right-click SetupCDCSample.dtsx, and then click Execute Package. &lt;br /&gt;&lt;h3&gt;
Sample Packages and Their Components
&lt;/h3&gt;The sample consists of five packages:&lt;br /&gt; The setup package—SetupCDCSampleThe setup package acts as a test harness for the sample. As a test harness, this package does the following processes: Performs all the required initialization. This includes creating a database snapshot. Generates a data manipulation language (DML) workload against the source tables while cycling the master package to perform an incremental load of the target tables for a given time period. Monitors the progress of the run, and stops the sample after all the DML workload has been processed and applied to the destination tables. Validates, at the end of the run, the content of the destination tables. The setup package compares the destination tables with the content of the source tables, and then records the results in the event log.   The master package—MasterCDCThe master package performs an incremental load of the target tables for the interval provided as input. To determine whether to continue with the incremental load, the master package checks the endpoints of the interval: If both endpoints for the extraction interval are in range, the master package starts the three child packages, which perform the incremental loads for the individual tables. If the high endpoint of the interval is outside the interval, the master package delays processing. This enables the capture process to catch up. If the low endpoint is outside the interval where change data exists for a source table, the master package logs an error and stops the sample.After all the child packages have finished running, the master package logs a message to the event log that indicates the sample has finished for the interval. The master package then stops the sample.  Three child packages—Extract Customer Data, Extract CreditCard Data and Extract WorkOrder DataThe structure of each of these child packages is identical: Each child package first creates the query that extracts the changed data. Then, the child package runs a data flow task that performs the incremental load of the changed data. The data flow task uses information in the result set that the query returns to split the returned rows. The data flow splits the rows into three distinct flows—insert, update, or delete—that correspond to the operation required to apply the row to the destination. The data flow task then runs the tasks that handle the various flows. The following sections describe the components found in each package.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
SetupCDCSample Package Components
&lt;/h5&gt;The SetupCDCSample package has several annotated functional groups:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Initialize Environment and Enable Change Data Capture  &lt;/li&gt;&lt;li&gt; Generate Workload  &lt;/li&gt;&lt;li&gt; Perform Initial Load for Target Tables  &lt;/li&gt;&lt;li&gt; Prepare for Initial Extraction  &lt;/li&gt;&lt;li&gt; Extract and Process Change Data  &lt;/li&gt;&lt;li&gt; Validate Incremental Load and Report Run Status  These groups help organize the content as described in the following sections.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  To view the annotated functional groups, open the SetupCDCSample package in Business Intelligence Development Studio. To see a larger view of the package, click the four-way arrow in the lower-right corner of the Control Flow tab, and then position the view window over the package. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Initialize Environment and Enable Change Data Capture
&lt;/h6&gt;This functional group contains a single Execute SQL task. The purpose of this task is to do the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Create the sample source tables from existing AdventureWorks2008 tables, and then enable change data capture for these tables.  &lt;/li&gt;&lt;li&gt; Create the target tables in the AdventureWorks2008DW database.  &lt;/li&gt;&lt;li&gt; Instantiate the change data capture wrapper functions, and the special functions that run during the initial extraction period.   The following table lists the task that this functional group uses.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Create Tables and Enable Change Data Capture| Execute SQL task| Creates the sample source tables from existing AdventureWorks2008 tables:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Checks for any objects that were created in previous runs of the sample, and deletes these objects, if present.  &lt;/li&gt;&lt;li&gt; Enables the AdventureWorks2008 database for change data capture.  &lt;/li&gt;&lt;li&gt; Creates the CDCSample schema.  &lt;/li&gt;&lt;li&gt; Creates the tables, CDCSample.Customer, CDCSample.CreditCard, and CDCSample.WorkOrder, in the CDCSample schema. (These tables mirror the comparable tables in the dbo schema.)  &lt;/li&gt;&lt;li&gt; Creates two helper procedures, generate_wrappers and HexStrToVarbin.   Creates the target tables in the AdventureWorks2008DW database :&lt;/li&gt;&lt;li&gt; Checks for any objects that were created in previous runs of the sample, and then deletes these objects, if present.  &lt;/li&gt;&lt;li&gt; Creates the CDCSample schema.  &lt;/li&gt;&lt;li&gt; Creates the target tables, Customer, CreditCard, and WorkOrder, in the CDCSample schema.   &lt;/li&gt;&lt;li&gt; Initializes the tables, CDCSample.Customer, CDCSample.CreditCard, and CDCSample.WorkOrder, with a subset of the table data from their parent AdventureWorks2008 tables.  &lt;/li&gt;&lt;li&gt; Enables change data capture on the parent AdventureWorks2008 tables.  Instantiates &lt;b&gt;datetime&lt;/b&gt; wrapper functions that query for change data.Defines customer wrapper functions that synchronize the first extraction interval to the initial load. |&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Generate Workload
&lt;/h6&gt;This functional group contains six Execute SQL tasks and a Script task:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Each of the three source tables has two Execute SQL tasks: one that generates insert activity against the table and one that generates update activity. Three of the six Execute SQL tasks run after change data capture has been enabled on the source tables. The remaining three run as each of the first three workload tasks finishes.   &lt;/li&gt;&lt;li&gt; When all the Execute SQL tasks have run, the Script task runs. The Script task sets the package variables that indicate that the workload has finished.  The following table lists the tasks that this functional group uses.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert Customer Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify Customer Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert CreditCard Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify CreditCard Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert WorkOrder Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify WorkOrder Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Mark Workload Completion| Script task| Sets the following package variables:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadCompleted&lt;/span&gt;  package variable that indicates whether the workload has finished.  &lt;/li&gt;&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadEndTime&lt;/span&gt;  package variable that indicates the time at which the workload finished.  This task uses Visual Basic. |&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Perform Initial Load for Target Tables
&lt;/h6&gt;This functional group contains one Script task and three Data Flow tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The Script task, Create Database Snapshot, creates a database snapshot of the AdventureWorks2008 database. This snapshot provides the source tables for the initial load of the target tables.   &lt;/li&gt;&lt;li&gt; The three data flow tasks then extract data from the snapshot tables and apply this data to the destination tables in the AdventureWorksDW2008 database.  The following table summarizes these tasks.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Create Database Snapshot&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Creates a database snapshot of the AdventureWorks2008 database.This task uses Visual Basic. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load Target Customer Table From Snapshot&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.Customer, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.Customer. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load CreditCard Table From Snapshot&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.CreditCard, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.CreditCard. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load WorkOrder Table From Snapshot&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.WorkOrder, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.WorkOrder. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Prepare for Initial Extraction
&lt;/h6&gt;This functional group contains two Execute SQL tasks and one Script task:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The first Execute SQL task, Verify Capture Process is Started, runs after all the initial loads of the target tables. This task verifies that the change data capture process has auto-started.  &lt;/li&gt;&lt;li&gt; The second Execute SQL task, Determine Datetime Base for Initial Extraction Interval, runs if the change data capture process has started. This task determines an initial &lt;b&gt;datetime&lt;/b&gt; value that serves as the base for generating extraction intervals for the incremental loads to follow.  &lt;/li&gt;&lt;li&gt; The Script task, Log Capture Not Started Message, runs if the process has not started. This task logs an error in the event log that indicates that SQL Server Agent must be running for the change data capture process to auto-start. This task also stops the package.   The following table summarizes these tasks.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Verify Capture Process is Started&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Examines the table, AdventureWorks2008.cdc.lsn&lt;i&gt;time&lt;/i&gt;mapping, to determine whether the capture process has started gathering changes from the transaction log, and then sets the  &lt;span class="codeInline"&gt;CaptureStarted&lt;/span&gt;  package variable accordingly. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Determine Datetime Base for Initial Extraction Interval&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Extracts the last log sequence number (LSN) that is included in the database snapshot from snapshot metadata, and then sets the  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  package variable to this value. It then delays until the capture process has processed through  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  in the transaction log. The &lt;b&gt;datetime&lt;/b&gt; value of the entry in the mapping table with the smallest LSN greater than  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  is then chosen as the &lt;b&gt;datetime&lt;/b&gt; base for computing extraction intervals for the run. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Log Capture Not Started Message&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Runs if the  &lt;span class="codeInline"&gt;CaptureStarted&lt;/span&gt;  package variable is set to 0, which indicates that the capture process did not auto-start. This task logs an appropriate error message in the event log. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Extract and Process Change Data
&lt;/h6&gt;This functional group contains a For Loop container that includes two tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; A Script task that computes the next extraction interval.  &lt;/li&gt;&lt;li&gt; An Execute Package task that runs the package that gathers the change data for the current interval and applies the data to the target tables.  The For Loop container maintains the package variable,  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt; . The For Loop container initializes the  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt;  package variable to 0, and then increments this variable by 1 on each iteration of the loop. The loop continues to run until the following conditions are true:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadCompleted&lt;/span&gt;  package variable is set to 1.  &lt;/li&gt;&lt;li&gt; The start time for the next iteration exceeds the recorded value for the  &lt;span class="codeInline"&gt;WorkloadEndTime&lt;/span&gt;  package variable.   The following table summarizes the components in this functional group.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Cycle Master at 10 second intervals&lt;/td&gt;&lt;td&gt; For Loop container&lt;/td&gt;&lt;td&gt; Runs a Script task that computes the new extraction interval, and then runs the package that gathers changes for the interval and applies those changes to the target tables. The container stops processing when all the changes in the generated workload have been applied to the destination tables. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Set Extract Interval| Script task| Sets the package variables that delimit the time interval for the next extraction interval:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The  &lt;span class="codeInline"&gt;ExtractStartTime&lt;/span&gt;  variable sets the low endpoint for the interval  &lt;/li&gt;&lt;li&gt; The  &lt;span class="codeInline"&gt;ExtractEndTime&lt;/span&gt;  variable sets the high endpoint for the interval.  To calculate the extraction interval, the task uses the value of the  &lt;span class="codeInline"&gt;ExtractEndTime&lt;/span&gt;  package variable from the previous interval to set the  &lt;span class="codeInline"&gt;ExtractStartTime&lt;/span&gt;  package variable for the current interval. The task then adds 10 seconds to the value of the new  &lt;span class="codeInline"&gt;ExtractStartTime&lt;/span&gt;  package variable, and sets the value of the  &lt;span class="codeInline"&gt;ExtractEndTime&lt;/span&gt;  package variable to this computed value. |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Run Master to Extract Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the MasterCDC package applies the incremental load for a given extraction interval to the destination tables.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Validate Incremental Load and Report Run Status
&lt;/h6&gt;This functional group contains an Execute SQL task and a Script task: &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The Execute SQL task, Check for Mismatch in Replicas, uses SQL CHECKSUM to compare the source tables with the replicas and sets package variables that indicate the run status.  &lt;/li&gt;&lt;li&gt; At the end of the run, the Script task, Output Run Completion Status, uses the package variables to report the results of the table comparisons in the event log.  The following table summarizes these tasks.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Check for Mismatch in Replicas&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Uses CHECKSUM to compare the replicas to the source tables. Based on this comparison, the task then sets the package variables,  &lt;span class="codeInline"&gt;CustomerMismatch&lt;/span&gt; ,  &lt;span class="codeInline"&gt;CreditCardMismatch&lt;/span&gt; , and  &lt;span class="codeInline"&gt;WorkOrderMismatch&lt;/span&gt; , accordingly.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Output Run Completion Status&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Outputs a status message to the event log at the end of the run. (This message reports on the parity of the package variables,  &lt;span class="codeInline"&gt;CustomerMismatch&lt;/span&gt; ,  &lt;span class="codeInline"&gt;CreditCardMismatch&lt;/span&gt; , and  &lt;span class="codeInline"&gt;WorkOrderMismatch&lt;/span&gt; .) Then, sets the run status accordingly.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
MasterCDC Package Components
&lt;/h5&gt;When the SetupCDCSample package runs, five package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the SetupCDCSample package to pass package variables to the MasterCDC package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;ExtractEndTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;ExtractStartTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::IntervalID&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::LastLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::BasePath&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources, data destinations, and transformations that the master package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Wait for Capture Process to Process Extraction Interval| For Loop container| Contains the following components:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; An Execute SQL task that sets a package variable that indicates the status of the proposed extraction interval relative to the capture process.  &lt;/li&gt;&lt;li&gt; A Script task that delays processing if the high endpoint of the interval is outside the interval. This delay enables the capture process to catch up.  &lt;/li&gt;&lt;li&gt; A Script task that runs on either of the following conditions:   &lt;/li&gt;&lt;li&gt; The low endpoint of the interval predates the interval for which there is valid data.  &lt;/li&gt;&lt;li&gt; After repeated delays, the capture process has not caught up.   If either of these conditions is true, the task generates an entry in the error log, and causes the package to stop running.  If the interval is valid, this container also starts the Execute Packages tasks that run the child packages that apply the change data to the destination tables.After the child packages complete, this container also runs a Script task that records that the extraction interval has finished in the event log. |&lt;/li&gt;
&lt;/ul&gt;| Check for Data| Execute SQL task| Sets the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable to one of the following values: &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; 0 = Need to wait for capture process  &lt;/li&gt;&lt;li&gt; 1 = Start time predates validity interval  &lt;/li&gt;&lt;li&gt; 2 = Ready for data query ( interval &amp;gt; 1)  &lt;/li&gt;&lt;li&gt; 3 = Ready for first data query  &lt;/li&gt;&lt;li&gt; 5 = Timeout ceiling reached waiting for capture process  (This task runs in the For Loop container.) |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Delay&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Delays processing for 10 seconds when the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 0 and the TimeoutCount is not yet exhausted.(This task runs in the For Loop container, and uses Visual Basic.) &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Log Extract Error&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Logs an error to the event log when the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to either 1 or 5.(This task runs in the For Loop Container.) &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract Customer Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCCustomerExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to either 2 or 3. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract CreditCard Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCCreditCardExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to either 2 or 3. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract WorkOrder Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCWorkOrderExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 2 or 3. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Log Extraction Complete&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Enters a message in the event log that indicates that the extraction interval has finished.This task runs after all child packages have finished. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCCustomerExtract Package Components
&lt;/h5&gt;When the MasterCDC package runs, four package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCCustomerExtract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::DataReady&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::LastLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources and destinations, and transformations that the CDCCustomerExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Generate SQL Data Query| Script task| Uses package variables to determine the type of query to run against the OLE DB source. There are two types of queries: &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; One query runs for the initial extraction interval. This query uses a custom wrapper function that uses an LSN value for the low endpoint and a &lt;b&gt;datetime&lt;/b&gt; value for the high endpoint.  &lt;/li&gt;&lt;li&gt; The other query runs for all other extraction intervals. For these intervals, the query uses the standard generated &lt;b&gt;datetime&lt;/b&gt; wrappers. The CDCCustomerExtract package stores this query in the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. The transformation uses the value of the &lt;i&gt;_CDC&lt;/i&gt;OPERATION column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is “I”, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is “UN”, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is “D”, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Customer Inserts &lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target Customer table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Customer Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Customer Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target Customer table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCCreditCardExtract PackageComponents
&lt;/h5&gt;When the MasterCDC package runs, four package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCCreditCardExtract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::DataReady&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::LastLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources, data destinations, and transformations that the CDCCreditCardExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Generate SQL Data Query&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Uses package variables to determine the type of query to run against the OLE DB source. There are two types of queries:One query synchronizes the package to the database during the initial extraction interval. This query uses a custom wrapper function that uses an LSN value for the low endpoint and a &lt;b&gt;datetime&lt;/b&gt; value for the high endpoint. The other query runs for all other extraction intervals. For these intervals, the query uses the standard generated &lt;b&gt;datetime&lt;/b&gt; wrappers. The CDCCreditCardExtract package stores this query in the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. This transformation uses the value of the &lt;i&gt;_CDC&lt;/i&gt;OPERATION column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is “I”, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is “UN”, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is “D”, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; CreditCard Inserts&lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CreditCard Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CreditCard Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCWorkOrderExtract Package Components
&lt;/h5&gt;When the MasterCDC package runs, four package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCWorkOrderExtract Extract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartTime&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::DataReady&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::LastLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;LastLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources, data destinations, and transformations that the CDCWorkOrderExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Generate SQL Data Query| Script task| Uses package variables to determine the type of query to run against the OLE DB source. There are two types of queries:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; One synchronizes the package to the database during the initial extraction interval. This query uses a custom wrapper function that uses an LSN value for the low endpoint and a datetime value for the high endpoint.  &lt;/li&gt;&lt;li&gt; The other query runs for all other extraction intervals. For these intervals, the query uses the standard generated &lt;b&gt;datetime&lt;/b&gt; wrappers. The CDCCustomerExtract package stores this query in the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. The transformation uses the value of the &lt;i&gt;_CDC&lt;/i&gt;OPERATION column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is “I”, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is “UN”, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is “D”, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; WorkOrder Inserts&lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target WorkOrder table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; WorkOrder Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; WorkOrder Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:02:56 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme Change Data Capture since Last Request Package 20081106110256P</guid></item><item><title>Updated Wiki: SS2008!Readme Change Data Capture for Specified Interval Package Sample</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Readme Change Data Capture for Specified Interval Package Sample&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Change Data Capture since Last Request Package Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample works only with SQL Server 2008 Enterprise and SQL Server 2008 Developer. This sample will not work with any version of SQL Server earlier than SQL Server 2008, or on any edition other than SQL Server 2008 Enterprise or SQL Server 2008 Developer. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This sample shows how to incorporate change data capture technology into an extraction, transformation, and loading (ETL) environment that uses Integration Services. This sample is a complete end-to-end sample that includes both workload generation and the initial load of target tables as part of the sample setup. After the initial load finishes, the master package runs periodically to gather the changes that have occured since the last request. The master package then updates the target replicas to reflect those changes.&lt;br /&gt;The source database is the AdventureWorks2008 database. This sample uses existing tables in the AdventureWorks2008 database to populate comparable destination tables in the CDCSample schema in the AdventureWorksDW2008 database.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample uses log sequence numbers (LSNs) to specify the range for the change data capture functions that request change data. To see how to use &lt;b&gt;datetime&lt;/b&gt; values to specify the query range when you query for change data, see &lt;a href="http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20Change%20Data%20Capture%20since%20Last%20Request%20Package&amp;amp;referringTitle=SS2008%21Readme%20Change%20Data%20Capture%20for%20Specified%20Interval%20Package%20Sample"&gt;Readme_Change Data Capture for Specified Interval Package Sample&lt;/a&gt;. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;To run this sample package, the following requirements must be met:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample package and data files that the sample uses must be installed on the local hard disk drive. You can download the sample from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=131204" class="externalLink"&gt;Microsoft SQL Server Product Samples: Integration Services&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the AdventureWorks2008 OLTP and AdventureWorksDW2008 databases.  &lt;/li&gt;&lt;li&gt; You must install SQL Server Database Engine to install support for the change data capture feature. You must also install Replication when you install SQL Server Database Engine.  &lt;/li&gt;&lt;li&gt; If you intend only to run the sample from the command line, you must install Integration Services.   &lt;/li&gt;&lt;li&gt; If you want to open and run the sample in SSIS Designer, you must install Business Intelligence Development Studio.   For more information about how to install samples, see &amp;quot;Installing Sample Integration Services Packages&amp;quot; in SQL Server Books Online. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location of the Sample Files
&lt;/h3&gt;This sample consists of the following files:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The solution file and Readme file.  &lt;/li&gt;&lt;li&gt; The project files and packages.  &lt;/li&gt;&lt;li&gt; The Transact-SQL script files.  &lt;/li&gt;
&lt;/ul&gt;&lt;h5&gt;
Location of the Solution File and Readme File
&lt;/h5&gt;The following folder is the default location of the solution file and Readme file for this sample:&lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture Since Last Request Package Sample\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture LSN Based Sample.sln&lt;/td&gt;&lt;td&gt; The solution file for this sample. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Readme_ChangeDataCapturesinceLastRequestPackageSample.htm&lt;/td&gt;&lt;td&gt; The Readme file for this sample. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Location of the Project Files and Packages
&lt;/h5&gt;The following folder is the default location of the project files and packages for this sample:&lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture Since Last Request Package Sample\Change Data Capture LSN Based Sample\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Change Data Capture LSN Based Sample.dtproj&lt;/td&gt;&lt;td&gt; The project file for this sample. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| SetupCDCSample.dtsx| The setup package and sample test harness. &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  If you did not install this sample to the default location, you will have to modify the package variables,  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  and  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt; , to correspond to the appropriate installation path. The default value of the  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  package variable is &lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\. The value of the  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt;  package variable derives from the value of the  &lt;span class="codeInline"&gt;SQLServerInstallPath&lt;/span&gt;  package variable. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; |&lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; MasterCDC.dtsx&lt;/td&gt;&lt;td&gt; The master package that performs an incremental load cycle. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the Customer table for the extraction interval, and then applies these changes to the destination.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the CreditCard table for the extraction interval, and then applies these changes to the destination. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWorkOrderExtract.dtsx&lt;/td&gt;&lt;td&gt; The child package that gathers the changes to the WorkOrder table for the extraction interval, and apply these changes to the destination. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Location of the Transact-SQL Script Files
&lt;/h5&gt;The following folder is the default location of the Transact-SQL script files for this sample: &lt;br /&gt;&lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture Since Last Request Package Sample\Change Data Capture LSN Based Sample\Scripts\&lt;br /&gt;The following table provides the complete name and a short description of the files in this folder.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  File &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCSetupTables.sql&lt;/td&gt;&lt;td&gt; The sample setup file.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCustomerModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCreditCardModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWorkOrderInsert.sql&lt;/td&gt;&lt;td&gt; The script that applies Inserts to CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCWOrkOrderModify.sql&lt;/td&gt;&lt;td&gt; The script that applies Updates to CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CDCCleanup.sql&lt;/td&gt;&lt;td&gt; The script that removes all objects that the sample creates.To apply this script, run  &lt;span class="codeInline"&gt;sqlcmd –E –iCDCCleanup.sql&lt;/span&gt; . &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the package, you can use either the &lt;b&gt;dtexec&lt;/b&gt; command prompt utility (dtexec.exe) or BI Development Studio.&lt;br /&gt;  To run the package by using the dtexec utility Open a Command Prompt window.Use the Change Directory command, cd, to change the directory that contains the dtexec utility.The default location of the dtexec utility is &amp;lt;drive&amp;gt;:\Program Files\Microsoft SQL Server\100\DTS\Binn.At the command prompt, type the following command: dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\Change Data Capture Since Last Request Package Sample\Change Data Capture LSN Based Sample\SetupCDCSample.dtsx &amp;quot;Press ENTER.For more information about how to use the dtexec utility run a package, see the topic &amp;quot;dtexec Utility&amp;quot; in SQL Server Books Online.   To run the package in Business Intelligence Development Studio In BI Development Studio, on the File menu, point to Open, and then click Project/Solution.For Files of type, select Integration Services Project Files (.dtproj). Then, locate the Change Data Capture Since Last Request Package Sample* folder, and double-click the file, Change Change Data Capture LSN Based Sample.dtproj.In Solution Explorer, in the SSIS Packages folder, right-click SetupCDCSample.dtsx, and then click Execute Package. &lt;br /&gt;&lt;h3&gt;
Sample Packages and Their Components
&lt;/h3&gt;The sample consists of five packages:&lt;br /&gt; The setup package—SetupCDCSampleThe setup package acts as a test harness for the sample. As a test harness, this package does the following processes: Performs all the required initialization. This includes creating a database snapshot. Generates a data manipulation language (DML) workload against the source tables while cycling the master package at 10 second intervals. The master package performs an incremental load of the target tables for all changes processed by the capture process since the last request. Monitors the progress of the run, and stops the sample after all the DML workload has been processed and applied to the destination tables. Validates, at the end of the run, the content of the destination tables. The setup package compares the destination tables with the content of the source tables, and then records the results in the event log.   The master package—MasterCDCThe master package performs an incremental load of the target tables for the interval provided as input. To determine whether to continue with the incremental load, the master package checks the endpoints of the interval: If both endpoints for the extraction interval are in range, the master package starts the three child packages, which perform the incremental loads for the individual tables. If either the low or high endpoint is outside the interval where change data exists for a source table, the master package logs an error and stops the sample.After all the child packages have finished running, the master package logs a message to the event log that indicates the sample has finished for the interval. The master package then stops the sample.  Three child packages—Extract Customer Data, Extract CreditCard Data and Extract WorkOrder DataThe structure of each of these child packages is identical: Each child package first creates the query that extracts the changed data. Then, the child package runs a data flow task that performs the incremental load of the changed data. The data flow task uses information in the result set that the query returns to split the returned rows. The data flow splits the rows into three distinct flows—insert, update, or delete—that correspond to the operation required to apply the row to the destination. The data flow task then runs the tasks that handle the various flows. The following sections describe the components found in each package.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
SetupCDCSample Package Components
&lt;/h5&gt;The SetupCDCSample package has several annotated functional groups:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Initialize Environment and Enable Change Data Capture  &lt;/li&gt;&lt;li&gt; Generate Workload  &lt;/li&gt;&lt;li&gt; Verify Capture Process is Running  &lt;/li&gt;&lt;li&gt; Perform Initial Load for Target Tables  &lt;/li&gt;&lt;li&gt; Prepare for Initial Extraction  &lt;/li&gt;&lt;li&gt; Extract and Process Change Data  &lt;/li&gt;&lt;li&gt; Validate Incremental Load and Report Run Status  These groups help organize the content as described in the following sections.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  To view the annotated functional groups, open the SetupCDCSample package in Business Intelligence Development Studio. To see a larger view of the package, click the four-way arrow in the lower-right corner of the Control Flow tab, and then position the view window over the package. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Initialize Environment and Enable Change Data Capture
&lt;/h6&gt;This functional group contains a single Execute SQL task. The purpose of this task is to do the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Create the sample source tables from existing AdventureWorks2008 tables, and then enable change data capture for these tables.  &lt;/li&gt;&lt;li&gt; Create the target tables in the AdventureWorks2008DW database.  The following table lists the task that this functional group uses.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Create Tables and Enable Change Data Capture| Execute SQL task| Creates the sample source tables from existing AdventureWorks2008 tables:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Checks for any objects that were created in previous runs of the sample, and deletes these objects, if present.  &lt;/li&gt;&lt;li&gt; Enables the AdventureWorks2008 database for change data capture.  &lt;/li&gt;&lt;li&gt; Creates the CDCSample schema.  &lt;/li&gt;&lt;li&gt; Creates the tables, CDCSample.Customer, CDCSample.CreditCard, and CDCSample.WorkOrder, in the CDCSample schema. (These tables mirror the comparable tables in the dbo schema.)  Creates the target tables in the AdventureWorks2008DW database :&lt;/li&gt;&lt;li&gt; Checks for any objects that were created in previous runs of the sample, and then deletes these objects, if present.  &lt;/li&gt;&lt;li&gt; Creates the CDCSample schema.  &lt;/li&gt;&lt;li&gt; Creates the target tables, Customer, CreditCard, and WorkOrder, in the CDCSample schema.   &lt;/li&gt;&lt;li&gt; Initializes the tables, CDCSample.Customer, CDCSample.CreditCard, and CDCSample.WorkOrder, with a subset of the table data from their parent AdventureWorks2008 tables.  &lt;/li&gt;&lt;li&gt; Enables change data capture on the parent AdventureWorks2008 tables.   |&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Generate Workload
&lt;/h6&gt;This functional group contains six Execute SQL tasks and a Script task:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Each of the three source tables has two Execute SQL tasks: one that generates insert activity against the table and one that generates update activity. Three of the six Execute SQL tasks run after change data capture has been enabled on the source tables. The remaining three run as each of the first three workload tasks finishes.   &lt;/li&gt;&lt;li&gt; When all the Execute SQL tasks have run, the Script task runs. The Script task sets the package variables that indicate that the workload has finished.  The following table lists the tasks that this functional group uses.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert Customer Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify Customer Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert CreditCard Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify CreditCard Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Insert WorkOrder Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies inserts to the AdventureWorks2008.CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Modify WorkOrder Table&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Applies updates to the AdventureWorks2008.CDCSample.WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Mark Workload Completion| Script task| Sets the following package variables:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadCompleted&lt;/span&gt;  package variable that indicates whether the workload has finished.  &lt;/li&gt;&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadEndTime&lt;/span&gt;  package variable that indicates the time at which the workload finished.  This task uses Visual Basic. |&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Verify Capture Process is Running
&lt;/h6&gt;This functional group contains one Execute SQL tasks and one Script task.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The Execute SQL task runs after the environment has been initialized and the source tables have been enabled for change sata capture. This task verifies that the change data capture process has started automatically.  &lt;/li&gt;&lt;li&gt; If the change data capture process has not automatically started, the Script task runs to log an error in the event log. This error message indicates that SQL Server Agent must be running for the capture process to automatically start. Then, the sample stops running. If the capture process is running, the Script task allows the database snapshot to continue in preparation for the initial load of the target tables.  &lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Perform Initial Load for Target Tables
&lt;/h6&gt;This functional group contains one Script task and three Data Flow tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The Script task, Create Database Snapshot, creates a database snapshot of the AdventureWorks2008 database. This snapshot provides the source tables for the initial load of the target tables.   &lt;/li&gt;&lt;li&gt; The three data flow tasks then extract data from the snapshot tables and apply this data to the destination tables in the AdventureWorksDW2008 database.  The following table summarizes these tasks.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;||  Name ||  Element &lt;br /&gt;            ||  Purpose  ||&lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Create Database Snapshot&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Creates a database snapshot for AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load Target Customer Table from Snapshot &lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.Customer, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.Customer. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load CreditCard Table from Snapshot&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.CreditCard, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.CreditCard. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Load WorkOrder Table From Snapshot&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to extract data from the snapshot table, CDCSample.WorkOrder, and then uses an OLE DB destination to apply the rows to the table, AdventureWorksDW2008.CDCSample.WorkOrder. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Prepare for Initial Extraction
&lt;/h6&gt;This functional group contains one Execute SQL task, which determines an appropriate LSN range to synchronize the first incremental load to the initial load.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Get End-points for Initial Query Interval&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Extracts the last LSN that is included in the database snapshot from snapshot metadata. Then, increments this value to serve as the low LSN value for the first incremental load that is applied after initialization. The task then delays until the capture process has processed through this LSN value in the transaction log. After this condition is true, the task identifies the current maximum LSN as the high LSN value for the initial query interval. The task uses the function, sys.fn&lt;i&gt;varbintohexstr, to convert the binary LSN values for the initial query interval to strings that are saved as the package variables,  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt;  and  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; . The task uses the cdc.lsn&lt;/i&gt;time_mapping table to associate an approximate &lt;b&gt;datetime&lt;/b&gt; value with the low endpoint, which the task saves as the package variable,  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; . &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Extract and Process Change Data
&lt;/h6&gt;This functional group contains a For Loop container that includes two tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; An Execute Package task that gathers and applies the change data that is associated with the current query interval to the target tables.  &lt;/li&gt;&lt;li&gt; An Execute SQL task that first delays for 10 seconds, and then computes the LSN range for the next query interval.  The For Loop container maintains the package variable,  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt; . The For Loop container initializes the  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt;  package variable to 0, and then and increments this variable by 1 on each iteration of the loop. The loop continues to run until the following conditions are true:&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The  &lt;span class="codeInline"&gt;WorkloadCompleted&lt;/span&gt;  package variable is set to 1.  &lt;/li&gt;&lt;li&gt; The computed value for the  &lt;span class="codeInline"&gt;ExtractionStartTime&lt;/span&gt;  package variable, which will be used in the next iteration, exceeds the recorded value for the  &lt;span class="codeInline"&gt;WorkloadEndTime&lt;/span&gt;  package variable.  &lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Cycle Master at 10 second intervals&lt;/td&gt;&lt;td&gt; For Loop container&lt;/td&gt;&lt;td&gt; First runs the package to gather changes for the interval, and then applies these changes to the target tables. The container then runs the Execute SQL task that first delays for 10 seconds and then computes the new extraction interval.The container stops processing when all the changes in the generated workload have been applied to the destination tables. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Run Master to Extract Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the MasterCDC package that applies the incremental load for a given extraction interval to the destination tables.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Delay 10 Seconds and Set New Query Interval&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Uses the function, sys.fn&lt;i&gt;cdc&lt;/i&gt;hexstrtobin, to convert the string representation of the high LSN value for the previous query to a binary(10) value. Then, uses the function, sys.fn&lt;i&gt;cdc&lt;/i&gt;increment&lt;i&gt;lsn, to increment this value to serve the low LSN value for the next query interval. After a delay of 10 seconds, uses the function, sys.fn&lt;/i&gt;cdc&lt;i&gt;get&lt;/i&gt;max&lt;i&gt;lsn, to obtain the current maximum LSN that has been processed by the capture process. This value serves as the high endpoint of the next query itnerval.If the low endpoint is greater than the maximum LSN, the task continues to delay for 10 seconds, and then obtains the current maximum LSN until the low endpoint does not exceed the maximum. The task uses the function, sys.fn&lt;/i&gt;varbintohexstr, to convert the binary LSN values that act as the lower and upper bounds for the next query interval to strings. The task then saves these strings as the package variables,  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt;  and  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; . The task uses the cdc.lsn&lt;i&gt;time&lt;/i&gt;mapping table i to associate an approximate &lt;b&gt;datetime&lt;/b&gt; value with the low endpoint, which is saved as the package variable,  &lt;span class="codeInline"&gt;User::ExtractStartTime&lt;/span&gt; .   &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Validate Incremental Load and Report Run Status
&lt;/h6&gt;This functional group contains an Execute SQL task and a Script task: &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The Execute SQL task, Check for Mismatch in Replicas, uses SQL CHECKSUM to compare the source tables with the replicas and sets package variables that indicate the run status.  &lt;/li&gt;&lt;li&gt; At the end of the run, the Script task, Output Run Completion Status, uses the package variables to report the results of the table comparisons in the event log.  The following table summarizes these tasks.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Check for Mismatch in Replicas&lt;/td&gt;&lt;td&gt; Execute SQL task&lt;/td&gt;&lt;td&gt; Uses CHECKSUM to compare the replicas to the source tables. Based on this comparison, the task then sets the package variables,  &lt;span class="codeInline"&gt;CustomerMismatch&lt;/span&gt; ,  &lt;span class="codeInline"&gt;CreditCardMismatch&lt;/span&gt; , and  &lt;span class="codeInline"&gt;WorkOrderMismatch&lt;/span&gt; , accordingly.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Output Run Completion Status&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Outputs a status message to the event log at the end of the run. (This message reports on the parity of the package variables,  &lt;span class="codeInline"&gt;CustomerMismatch&lt;/span&gt; ,  &lt;span class="codeInline"&gt;CreditCardMismatch&lt;/span&gt; , and  &lt;span class="codeInline"&gt;WorkOrderMismatch&lt;/span&gt; .) Then, sets the run status accordingly.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
MasterCDC Package Components
&lt;/h5&gt;When the SetupCDCSample package runs, five package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the SetupCDCSample package to pass package variables to the MasterCDC package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;ExtractEndLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;ExtractStartLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::IntervalID&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;IntervalID&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::BasePath&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;BasePath&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following tables list the tasks, containers, data sources and destinations, and transformations that are used in the master package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;| Wait for Capture Process to Process Extraction Interval| For Loop container| Contains the following components:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; An Execute SQL task that sets a package variable that indicates the status of the proposed extraction interval relative to the capture process.  &lt;/li&gt;&lt;li&gt; A Script task that generates an entry in the error log if the query interval is not valid, and causes the package to stop running. The query interval is not valid if either the low endpoint or the high endpoint do not lie in the change data capture validity interval for the database.  If the interval is valid, this container also starts the Execute Packages tasks that run the child packages that apply the change data to the destination tables.After the child packages complete, this container also runs a Script task that records that the extraction interval has finished in the event log. |&lt;/li&gt;
&lt;/ul&gt;| Check for Valid Interval| Execute SQL task| Sets the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable to one of the following values: &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; 0 = Query interval is not valid  &lt;/li&gt;&lt;li&gt; 1 = Query interval is valid  (This task runs in the For Loop container.) |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Log Extract Error&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Logs an error to the event log when the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 0.(This task runs in the For Loop Container.) &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract Customer Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCCustomerExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 1 &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract CreditCard Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCCreditCardExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 1. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Extract WorkOrder Data&lt;/td&gt;&lt;td&gt; Execute Package task&lt;/td&gt;&lt;td&gt; Runs the CDCWorkOrderExtract package after the For Loop container finishes, and the  &lt;span class="codeInline"&gt;DataReady&lt;/span&gt;  package variable is set to 1. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Log Extraction Complete&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Enters a message in the event log that indicates that the extraction interval has finished.This task runs after all child packages have finished. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCCustomerExtract Package Components
&lt;/h5&gt;When the MasterCDC package runs, two package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCCustomerExtract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources and destinations, and transformations that the CDCCustomerExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Generate SQL Data Query&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Uses the package variables,  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  and  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt; , to determine the LSN values to provide to the generated function that queries for change data. The query is deposited in the package variable,  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt; . &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. The transformation uses the value of the __$operation column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is 2, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is 4, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is 1, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; Customer Inserts &lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target Customer table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Customer Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target Customer table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Customer Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target Customer table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCCreditCardExtract Package Components
&lt;/h5&gt;When the MasterCDC package runs, two package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCCreditCardExtract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources, data destinations, and transformations that the CDCCreditCardExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Generate SQL Data Query&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Uses the package variables  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  and  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt; , to determine the LSN values to provide to the generated function call that queries for change data. The query is deposited in the package variable,  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt; . &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. The transformation uses the value of the __$operation column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is 2, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is 4, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is 1, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; CreditCard Inserts&lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CreditCard Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; CreditCard Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target CreditCard table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
CDCWorkOrderExtract Package Components
&lt;/h5&gt;When the MasterCDC package runs, two package configurations of type, &amp;quot;Parent package variable&amp;quot;, enable the MasterCDC package to pass package variables to the CDCWorkOrderExtract Extract package. The following table lists these package variables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Parent &lt;/th&gt;&lt;th&gt;  Child  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractEndLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  &lt;span class="codeInline"&gt;User::ExtractStartLSN&lt;/span&gt; &lt;/td&gt;&lt;td&gt;  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;The following table lists the tasks, containers, data sources, data destinations, and transformations that the CDCWorkOrderExtract package uses.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Name &lt;/th&gt;&lt;th&gt;  Element &lt;/th&gt;&lt;th&gt;  Purpose  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Generate SQL Data Query&lt;/td&gt;&lt;td&gt; Script task&lt;/td&gt;&lt;td&gt; Uses the package variables,  &lt;span class="codeInline"&gt;StartLSN&lt;/span&gt;  and  &lt;span class="codeInline"&gt;EndLSN&lt;/span&gt; , to determine the LSN values to provide to the generated function call that queries for change data. The query is deposited in the package variable,  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt; . &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Process Change Data&lt;/td&gt;&lt;td&gt; Data Flow task&lt;/td&gt;&lt;td&gt; Uses an OLE DB source to query for change data. A data flow component then separates the returned rows into flows—insert, delete, and update—that correspond to the operation required to apply the row to the destination. An OLE DB destination handles the insert flow. Data Flow components that run SQL commands for each row handle the delete and update flows.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Query for Change Data&lt;/td&gt;&lt;td&gt; OLE DB source&lt;/td&gt;&lt;td&gt; Uses the query that the  &lt;span class="codeInline"&gt;SQLDataQuery&lt;/span&gt;  package variable supplies to extract change data. The query uses the connection manager, AdventureWorks2008. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;| Filter Based on Operation| Conditional Split transformation| Divides the results set that the query returns into three different flows. The transformation uses the value of the __$operation column in each returned row to divide the results set:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If the value is 2, directs the row to the insert flow.  &lt;/li&gt;&lt;li&gt; If the value is 4, directs the row to the update flow.  &lt;/li&gt;&lt;li&gt; If the value is 1, directs the row to the delete flow.   |&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;td&gt; WorkOrder Inserts&lt;/td&gt;&lt;td&gt; OLE DB destination&lt;/td&gt;&lt;td&gt; Processes the insert flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then inserts the specified rows into the target WorkOrder table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; WorkOrder Deletes&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the delete flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then deletes the specified rows from the target WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; WorkOrder Updates&lt;/td&gt;&lt;td&gt; OLE DB Command transformation&lt;/td&gt;&lt;td&gt; Processes the update flow. Uses the connection manager, AdventureWorksDW2008, to connect to the destination and then updates the specified rows in the target WorkOrder table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:02:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme Change Data Capture for Specified Interval Package Sample 20081106110237P</guid></item><item><title>Updated Wiki: SS2008!Readme_ODBC_SparseCols</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Readme_ODBC_SparseCols&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme&lt;i&gt;ODBC&lt;/i&gt;SparseCols
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample shows how to call &lt;b&gt;SQLColumns&lt;/b&gt; on a table with sparse columns that were defined by using ODBC in SQL Server Native Client.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about the sparse columns feature, see &lt;b&gt;Sparse Columns Support in SQL Server Native Client&lt;/b&gt; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure that the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; You must specify a server. In odbc_sparse.cpp, change &amp;quot;MyServer&amp;quot; to a valid server name.  &lt;/li&gt;&lt;li&gt; Make sure your INCLUDE environment variable includes the directory that contains sqlncli.h.  &lt;/li&gt;&lt;li&gt; If you are using Visual Studio, load the odbc_sparse.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt. Pass in the odbc_sparse.sln file, as follows:   *  MSBuild odbc_sparse.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke odbc_sparse.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:02:18 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_ODBC_SparseCols 20081106110218P</guid></item><item><title>Updated Wiki: SS2008!Readme_ODBC Date Time</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!Readme_ODBC Date Time&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ODBC Date Time
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;This sample shows how to initialize the date/time data structures that were added in SQL Server 2008. It then prepares the input values, binds parameters, and executes the query.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;For more information about date/time enhancements in SQL Server 2008, see &lt;b&gt;Date/Time Improvements&lt;/b&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express, including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 (or later) or Microsoft Visual Studio 2005 (or later). You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; You also need an ODBC data source called DateTime. This data source must be based on the ODBC driver for SQL Server Native Client. The default database for DateTime should be tempdb. To build and run this sample as a 32-bit application on a 64-bit operating system, you must create the ODBC data source with the ODBC Administrator in %windir%\SysWOW64\odbcad32.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a named instance, change the definition of the ODBC data source to specify the instance, using the following format: &lt;i&gt;server&lt;/i&gt;\&lt;i&gt;named&lt;/i&gt;instance_. By default, SQL Server Express installs to a named instance.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following Transact-SQL, which you can find in the scripts directory of the sample:   * {&amp;quot; use tempdb&lt;/li&gt;
&lt;/ul&gt;GO&lt;br /&gt; &lt;br /&gt;IF EXISTS (SELECT name FROM sysobjects WHERE name = 'DateTimeTypes')&lt;br /&gt;DROP TABLE DateTimeTypes&lt;br /&gt;GO&lt;br /&gt; &lt;br /&gt;CREATE TABLE DateTimeTypes (datecol date, time2col time(7), datetime2col datetime2(7), datetimeoffsetcol datetimeoffset(7))&lt;br /&gt;GO &amp;quot;}* In SQL Server Management Studio, load and execute the Scripts\setup.sql script. Alternatively, you can execute the following command in a Command Prompt window:   *  sqlcmd -E -I -i Scripts\setup.sql *&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the DateTime_ODBC.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe in a Command Prompt, passing it the DateTime_ODBC.sln file:   *  MSBuild DateTime_ODBC.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke DateTime_ODBC.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:02:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_ODBC Date Time 20081106110202P</guid></item><item><title>Updated Wiki: SS2008!README UseDataAtExecutionParameters</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!README UseDataAtExecutionParameters&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_UseDataAtExecutionParameters (ODBC)
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The sample shows how to read SQL_LONG variable character data using SQLParamData and SQLPutData. This sample is not supported on IA64.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; You will also need an ODBC data source called AdventureWorks, whose default database is the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database. If you will build and run this sample as a 32-bit application on a 64-bit operating system, you must create the ODBC data source with the ODBC Administrator in %windir%\SysWOW64\odbcad32.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a named instance, change the definition of the ODBC data source to specify the instance using the following format: &lt;i&gt;server&lt;/i&gt;\&lt;i&gt;named&lt;/i&gt;instance_. By default, SQL Server Express installs to a named instance.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following stored procedure, which you can find in the sample's scripts directory:   * {&amp;quot; use AdventureWorks&lt;/li&gt;
&lt;/ul&gt;CREATE TABLE emp4 (NAME char(30), AGE int, BIRTHDAY datetime, Memo1 text) &amp;quot;}* In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:   *  sqlcmd -E -I -i Scripts\setup.sql *&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the UseDataAtExecutionParameters.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the UseDataAtExecutionParameters.sln file:   *  MSBuild UseDataAtExecutionParameters.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke UseDataAtExecutionParameters.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:01:48 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!README UseDataAtExecutionParameters 20081106110148P</guid></item><item><title>Updated Wiki: SS2005!README UseDataAtExecutionParameters</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2005!README UseDataAtExecutionParameters&amp;version=19</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
README UseDataAtExecutionParameters
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 17 July 2006 &lt;/b&gt;&lt;br /&gt;The sample shows how to read SQL_LONG variable character data using SQLParamData and SQLPutData. This sample is not supported on IA64.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server 2005 or SQL Server 2005 Express Edition (SQL Server Express) including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; You will also need an ODBC data source called AdventureWorks, whose default database is the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a named instance, change the definition of the ODBC data source to specify the instance using the following format: &lt;i&gt;server&lt;/i&gt;\&lt;i&gt;named&lt;/i&gt;instance_. By default, SQL Server Express installs to a named instance.  &lt;/li&gt;&lt;li&gt; The sample requires you to execute the following stored procedure, which you can find in the sample's scripts directory:   * {&amp;quot; use AdventureWorks&lt;/li&gt;
&lt;/ul&gt;CREATE TABLE emp4 (NAME char(30), AGE int, BIRTHDAY datetime, Memo1 text) &amp;quot;}* In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:   *  sqlcmd -E -I -i Scripts\setup.sql *&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the UseDataAtExecutionParameters.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the UseDataAtExecutionParameters.sln file:   *  MSBuild UseDataAtExecutionParameters.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke UseDataAtExecutionParameters.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h5&gt;
Change History
&lt;/h5&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Release &lt;/th&gt;&lt;th&gt;  History  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 17 July 2006 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Clarified and updated prerequisites including the Web site for downloading the samples.  New content: Added information on connecting to a named instance.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &amp;#169; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:01:32 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!README UseDataAtExecutionParameters 20081106110132P</guid></item><item><title>Updated Wiki: SS2008!README UseDataAtExecutionColumns</title><link>http://www.codeplex.com/MSFTDPProdSamples/Wiki/View.aspx?title=SS2008!README UseDataAtExecutionColumns&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_UseDataAtExecutionColumns (ODBC)
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The sample shows how to read a SQL_LONG variable character data using SQLGetData. This sample is not supported on IA64.&lt;br /&gt; SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;This sample uses Visual C++.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express including Database Engine.   You can download SQL Server Express from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Microsoft Download Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; You will also need an ODBC data source called AdventureWorks, whose default database is the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database. If you will build and run this sample as a 32-bit application on a 64-bit operating system, you must create the ODBC data source with the ODBC Administrator in %windir%\SysWOW64\odbcad32.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; This sample connects to your computer's default SQL Server instance. To connect to a named instance, change the definition of the ODBC data source to specify the instance using the following format: &lt;i&gt;server&lt;/i&gt;\&lt;i&gt;named&lt;/i&gt;instance_. By default, SQL Server Express installs to a named instance.  &lt;/li&gt;&lt;li&gt; This sample requires you to run the following Transact-SQL, which you can find in the sample's scripts directory:   * {&amp;quot; use AdventureWorks&lt;/li&gt;
&lt;/ul&gt;CREATE TABLE emp3 (NAME char(30), AGE int, BIRTHDAY datetime, Memo1 text)&lt;br /&gt;INSERT INTO emp3 (NAME, AGE, Memo1) VALUES   ('Name1', '12', 'This is the first employee')&lt;br /&gt;INSERT INTO emp3 (NAME, AGE, Memo1) VALUES   ('Name2', '18', 'This is the second employee') &amp;quot;}* In SQL Server Management Studio, load and execute the Scripts\setup.sql script or execute the following command in a Command Prompt window:   *  sqlcmd -E -I -I Scripts\setup.sql *&lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you are using Visual Studio, load the BulkCopyFormatAndData.sln file and build it.  &lt;/li&gt;&lt;li&gt; If you are using MSBuild.exe, invoke MSBuild.exe at a command prompt, passing it the UseDataAtExecutionColumns.sln file:   *  MSBuild UseDataAtExecutionColumns.sln *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; From Visual Studio, invoke &lt;b&gt;Start Without Debugging&lt;/b&gt; (CTRL+F5).  &lt;/li&gt;&lt;li&gt; If you built with MSBuild.exe, invoke UseDataAtExecutionColumns.exe.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Data Access Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:01:17 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!README UseDataAtExecutionColumns 20081106110117P</guid></item></channel></rss>