<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Microsoft SQL Server Product Samples: Integration Services</title><link>http://www.codeplex.com/MSFTISProdSamples/Project/ProjectRss.aspx</link><description>This project contains Integration Services samples released with Microsoft SQL Server product.   </description><item><title>Source code checked in, #11622</title><link>http://www.codeplex.com/MSFTISProdSamples/SourceControl/ListDownloadableCommits.aspx</link><description>Adding &amp;#39;Katmai&amp;#58;June 2008 RC0&amp;#39;</description><author>ReedMe</author><pubDate>Wed, 11 Jun 2008 05:42:45 GMT</pubDate><guid isPermaLink="false">Source code checked in, #11622 20080611054245A</guid></item><item><title>Updated Wiki: SS2008!Integration Services Tutorial Package Samples</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!Integration Services Tutorial Package Samples&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Creating a Simple ETL Package Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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 Lesson 1, Lesson2, Lesson 3, Lesson 4, and Lesson 5 packages are the completed packages from the Integration Services tutorial, &lt;b&gt;Tutorial: Creating a Simple ETL Package&lt;/b&gt;. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Creating a Simple ETL Package Tutorial&amp;quot; located in the Integration Services Tutorials section of Books Online. Each lesson's package builds on the version of the package created in the earlier lessons.&lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. Modification of tutorial packages may give you results that differ from those defined in the tutorial lessons. &lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Lessons &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 1&lt;/td&gt;&lt;td&gt; A simple ETL package that extracts data from a single flat file, transforms the data by using lookup transformations, and finally loads the result into a fact table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 2&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 1 to take advantage of new looping features to extract multiple flat files into a single data flow process. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 3&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 2 to use a package configuration, variable, and property expression to dynamically update a property. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 4&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 3 to add logging. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 5&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in lesson 4 to use error redirection to capture invalid data in a text file.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorksDW&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; If you intend only to run the sample package from the command line, you must install Integration Services.   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&lt;br /&gt;The Lesson 5 package uses the package configuration file that is created in lesson 3 and used by the Lesson 3 and Lesson 4 packages. Before you run the Lesson 5 package, make sure that the ConfiguredValue element in the SSISTutorial.dtsConfig file contains the location of the Sample Data folder. The default location of this folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Sample Data.&lt;br /&gt;Also, the Lesson 5 package uses the Currency&lt;i&gt;BAD.txt file. If you want to use the file provided instead of creating the file, you must copy Currency&lt;/i&gt;BAD.txt from C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages to C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Sample Data before you run the package.&lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer and, if necessary, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ConnectionString&lt;/b&gt; property for the Sample Data connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\100\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you must add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click &lt;b&gt;SSIS Packages&lt;/b&gt; and then click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add tutorial packages to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;.  &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:22:04 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Integration Services Tutorial Package Samples 20080611012204A</guid></item><item><title>Updated Wiki: SS2005!Integration Services Tutorial Package Samples</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!Integration Services Tutorial Package Samples&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Creating a Simple ETL Package Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; New: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The Lesson 1, Lesson2, Lesson 3, Lesson 4, and Lesson 5 packages are the completed packages from the Integration Services tutorial, &lt;b&gt;Creating a Simple ETL Package Tutorial&lt;/b&gt;. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Creating a Simple ETL Package Tutorial&amp;quot; located in the Integration Services Tutorials section of Books Online. Each lesson's package builds on the version of the package created in the earlier lessons.&lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. Modification of tutorial packages may give you results that differ from those defined in the tutorial lessons. &lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Lessons &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 1&lt;/td&gt;&lt;td&gt; A simple ETL package that extracts data from a single flat file, transforms the data by using lookup transformations, and finally loads the result into a fact table.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 2&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 1 to take advantage of new looping features to extract multiple flat files into a single data flow process. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 3&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 2 to use a package configuration, variable, and property expression to dynamically update a property. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 4&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in Lesson 3 to add logging. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Lesson 5&lt;/td&gt;&lt;td&gt; In this lesson, you will expand the package you created in lesson 4 to use error redirection to capture invalid data in a text file.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;
&lt;/ul&gt;* &lt;br /&gt;          You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorksDW&lt;/b&gt; database.   &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If you intend only to run the sample package from the command line, you must install SQL Server 2005 Integration Services (SSIS).   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 2005 Books Online. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location of the Sample Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&lt;br /&gt;The Lesson 5 package uses the package configuration file that is created in lesson 3 and used by the Lesson 3 and Lesson 4 packages. Before you run the Lesson 5 package, make sure that the ConfiguredValue element in the SSISTutorial.dtsConfig file contains the location of the Sample Data folder. The default location of this folder is C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Sample Data.&lt;br /&gt;Also, the Lesson 5 package uses the Currency&lt;i&gt;BAD.txt file. If you want to use the file provided instead of creating the file, you must copy Currency&lt;/i&gt;BAD.txt from C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages to C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Sample Data before you run the package.&lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer and, if necessary, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ConnectionString&lt;/b&gt; property for the Sample Data connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\90\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server 2005 Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you must add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click SSIS Packages and then click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add tutorial packages to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;.  &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:21:25 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Integration Services Tutorial Package Samples 20080611012125A</guid></item><item><title>Updated Wiki: SS2008!Deploying Packages Tutorial: Lesson Packages</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!Deploying Packages Tutorial: Lesson Packages&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Deploying Packages Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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 LoadXMLData and DataTransfer packages are the packages that you enhance and deploy in the Integration Services tutorial, Deploying Packages. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Deploying Packages Tutorial&amp;quot; located in the Integration Services Tutorials section of Books Online. &lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. If you use modified packages in the tutorial, the lesson results may be different from those described in the tutorial.&lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Package &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DataTransfer&lt;/td&gt;&lt;td&gt; A simple package that extracts data from a single flat file, splits the extracted dataset based on column values, and loads the resultant data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it. The Execute SQL task in the package logs events to an XML log file.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; LoadXMLData&lt;/td&gt;&lt;td&gt; A simple package that extracts data from an XML data file, splits the extracted dataset based on column values, aggregates values, and loads the resultant data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; If you intend only to run the sample package from the command line, you must install Integration Services.   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer, and if you need to, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ConnectionString&lt;/b&gt; property for the NewCustomers connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\100\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click SSIS Packages and click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add the second tutorial package to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;.  &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:20:56 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Deploying Packages Tutorial: Lesson Packages 20080611012056A</guid></item><item><title>Updated Wiki: SS2005!Deploying Packages Tutorial: Lesson Packages</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!Deploying Packages Tutorial: Lesson Packages&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Deploying Packages Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; New: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The LoadXMLData and DataTransfer packages are the packages that you enhance and deploy in the Integration Services tutorial, Deploying Packages. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Deploying Packages Tutorial&amp;quot; located in the Integration Services Tutorials section of Books Online. &lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. If you use modified packages in the tutorial, the lesson results may be different from those described in the tutorial.&lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Package &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DataTransfer&lt;/td&gt;&lt;td&gt; A simple package that extracts data from a single flat file, splits the extracted dataset based on column values, and loads the resultant data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it. The Execute SQL task in the package logs events to an XML log file.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; LoadXMLData&lt;/td&gt;&lt;td&gt; A simple package that extracts data from an XML data file, splits the extracted dataset based on column values, aggregates values, and loads the resultant data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; If you intend only to run the sample package from the command line, you must install SQL Server 2005 Integration Services (SSIS).   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 2005 Books Online. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location of the Sample Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer, and if you need to, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ConnectionString&lt;/b&gt; property for the NewCustomers connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\90\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server 2005 Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click SSIS Packages and click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Deploying Packages\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add the second tutorial package to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;.  &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:20:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Deploying Packages Tutorial: Lesson Packages 20080611012012A</guid></item><item><title>Updated Wiki: SS2008!Creating a Basic Package Tutorial: Lesson Packages</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!Creating a Basic Package Tutorial: Lesson Packages&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Creating a Basic Package Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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 Basic Lesson 1 and Basic Lesson 2 packages are the completed packages from the Integration Services tutorial, Creating a Basic Package Using a Wizard. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Creating a Basic Package Using a Wizard&amp;quot; located in the Integration Services Tutorials section of Books Online. &lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. Modification of tutorial packages may give you results that differ from the results of packages that were defined in the tutorial lessons.&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;  The first time that you run the Basic Lesson 1 or Basic Lesson 2 package, the task named Drop table(s) SQL Task will fail. This behavior is expected. The reason the task fails is that the package tries to drop and re-create the &lt;b&gt;ProspectiveCustomers&lt;/b&gt; table; however, the first time that the package runs, the table does not exist and therefore the DROP statement fails. This does not cause the package to fail because the precedence constraint between the Drop table(s) SQL Task and Preparation SQL tasks has been set to Completion instead of Success. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Package &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Basic Lesson 1&lt;/td&gt;&lt;td&gt; A simple data transfer package that uses a SELECT statement to extract data from an Excel workbook file and load the data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it. This package was built by using the SQL Server Import and Export Wizard. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Basic Lesson 2&lt;/td&gt;&lt;td&gt; The Basic Lesson 1 package enhanced with more complex data flow. The data flow now includes a Sort transformation to sort the data by state and city, and a Derived Column transformation to add a new column whose value is set by the evaluation result of an expression.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;&lt;li&gt; You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; If you intend only to run the sample package from the command line, you must install Integration Services.   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&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;  This sample uses the Microsoft Jet 4.0 OLE DB provider, for which there is no 64-bit version. The package fails on a 64-bit computer. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer, and if you need to, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ExcelFilePath&lt;/b&gt; and &lt;b&gt;ServerName&lt;/b&gt; properties of the SourceConnectionExcel connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\100\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click SSIS Packages and then click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add the second tutorial package to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;. &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;Tutorial: Creating a Basic Package Using a Wizard&lt;/b&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>Wed, 11 Jun 2008 01:19:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Creating a Basic Package Tutorial: Lesson Packages 20080611011950A</guid></item><item><title>Updated Wiki: SS2005!Creating a Basic Package Tutorial: Lesson Packages</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!Creating a Basic Package Tutorial: Lesson Packages&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Creating a Basic Package Tutorial: Lesson Packages
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; New: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The Basic Lesson 1 and Basic Lesson 2 packages are the completed packages from the Integration Services tutorial, Creating a Basic Package Using a Wizard. The topics in Books Online provide detailed information about the functionality of each package. For more information, see the topics in &amp;quot;Creating a Basic Package Using a Wizard&amp;quot; located in the Integration Services Tutorials section of Books Online. &lt;br /&gt;You can open and run these packages outside the tutorial. However, we do not recommend that you modify them. Modification of tutorial packages may give you results that differ from the results of packages that were defined in the tutorial lessons.&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;  The first time that you run the Basic Lesson 1 or Basic Lesson 2 package, the task named Drop table(s) SQL Task will fail. This behavior is expected. The reason the task fails is that the package tries to drop and re-create the &lt;b&gt;ProspectiveCustomers&lt;/b&gt; table; however, the first time that the package runs, the table does not exist and therefore the DROP statement fails. This does not cause the package to fail because the precedence constraint between the Drop table(s) SQL Task and Preparation SQL tasks has been set to Completion instead of Success. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The following table provides a brief summary of each package.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Package &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Basic Lesson 1&lt;/td&gt;&lt;td&gt; A simple data transfer package that uses a SELECT statement to extract data from an Excel workbook file and load the data into a table in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. If the table does not already exist, the package creates it. This package was built by using the SQL Server Import and Export Wizard. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Basic Lesson 2&lt;/td&gt;&lt;td&gt; The Basic Lesson 1 package enhanced with more complex data flow. The data flow now includes a Sort transformation to sort the data by state and city, and a Derived Column transformation to add a new column whose value is set by the evaluation result of an expression.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&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;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;* &lt;br /&gt;         The sample packages and data files that it uses must be installed on the local hard disk drive.   &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; You must have installed and have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; If you intend only to run the sample package from the command line, you must install SQL Server 2005 Integration Services (SSIS).   &lt;/li&gt;&lt;li&gt; If you intend to open the package in SSIS Designer and run the sample package, you must also 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 2005 Books Online. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location of the Sample Packages
&lt;/h3&gt;If the samples were installed to the default installation location, the tutorial sample packages are located in the following folder: &lt;br /&gt;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The packages can be run from the command line by using the &lt;b&gt;dtexec&lt;/b&gt; utility, or can be run in Business Intelligence Development Studio.&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;  This sample uses the Microsoft Jet 4.0 OLE DB provider, for which there is no 64-bit version. The package fails on a 64-bit computer. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;If you are using a non-English version of Windows, you may have to update the &lt;b&gt;ConnectionString&lt;/b&gt; property of any file connection managers used in the package to run the sample package successfully. You should verify that the path used in the connection manager is valid on your computer, and if you need to, modify the path so that it uses the localized name of the Program Files folder.&lt;br /&gt;For this sample, you may have to update &amp;quot;Program Files&amp;quot; in the &lt;b&gt;ExcelFilePath&lt;/b&gt; and &lt;b&gt;ServerName&lt;/b&gt; properties of the SourceConnectionExcel connection manager.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the package by using dtexec
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Change the directory to C:\Program Files\Microsoft SQL Server\90\DTS\Binn, the location of &lt;b&gt;dtexec&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command: *  dtexec /f &amp;quot;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages\&amp;lt;package name&amp;gt;&amp;quot; *&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Enter&lt;/b&gt;.For more information about how to run the package by using the &lt;b&gt;dtexec&lt;/b&gt; utility, see the topic, &amp;quot;dtexec Utility&amp;quot;, in SQL Server 2005 Books Online. &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h5&gt;
Running the Sample in Business Intelligence Development Studio
&lt;/h5&gt;If you do not already have an Integration Services project to which you can add the tutorial packages, you must first create a project.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To create a new Integration Services project
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;File&lt;/b&gt; menu, point to &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Project&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New Project&lt;/b&gt; dialog box, select the &lt;b&gt;Integration Services Project&lt;/b&gt; template from the &lt;b&gt;Templates&lt;/b&gt; pane. &lt;/li&gt;&lt;li&gt;Optionally, edit the project name and the location. The solution name is automatically updated to match the project name.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Solution&lt;/b&gt; drop-down list, select &lt;b&gt;Create new Solution&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;To create a separate folder for the solution file, select &lt;b&gt;Create directory for solution&lt;/b&gt;. This is the default option.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; to add the solution to &lt;b&gt;Solution Explore&lt;/b&gt;r and add the project to the solution.Next, you add the packages to the Integration Services project.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To run a package in Business Intelligence Development Studio
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Solution Explorer, right-click SSIS Packages and then click &lt;b&gt;Add Existing Package&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Add Copy of Existing Package&lt;/b&gt; dialog box, set &lt;b&gt;Package location&lt;/b&gt; to &lt;b&gt;File system&lt;/b&gt;, click browse &lt;b&gt;(…)&lt;/b&gt;, and locate the folder that contains the completed packages from the tutorial. The default location is C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Tutorial\Creating a Basic Package\Completed Packages.&lt;/li&gt;&lt;li&gt;Click the package to add, and then click &lt;b&gt;Open&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Repeat steps 1-4 to add the second tutorial package to the project. &lt;/li&gt;&lt;li&gt;Right-click the package to run in the &lt;b&gt;SSIS Packages&lt;/b&gt; folder, and then click &lt;b&gt;Execute Package&lt;/b&gt;. &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;Creating a Basic Package Using a Wizard&lt;/b&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2005 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:19:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Creating a Basic Package Tutorial: Lesson Packages 20080611011919A</guid></item><item><title>Updated Wiki: SS2008!HtmlLogProvider Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!HtmlLogProvider Sample&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_HtmlLogProvider Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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 HtmlLogProvider sample demonstrates how to create a custom log provider, the Html Log Provider, which writes logging output to an HTML document.&lt;br /&gt;For more information about how to create a custom log provider, see &lt;b&gt;Creating a Custom Log Provider&lt;/b&gt;. For general information about the use of log providers in Integration Services, see &lt;b&gt;Integration Services Log Providers&lt;/b&gt;.&lt;br /&gt;The custom log provider obtains the name of a destination file that has the extension &lt;b&gt;.htm&lt;/b&gt; or &lt;b&gt;.html&lt;/b&gt; from an existing File connection manager. It outputs logged events to an HTML table in the specified destination file, ignoring the final two standard columns (dataCode and dataBytes) which may contain binary data that cannot be displayed correctly in an HTML document. The sample encapsulates the HTML logging code in a separate HtmlLogWriter helper class for ease of reuse. This helper class has OpenLogHtml, LogHtml, and CloseLogHtml subroutines, which are called from &lt;b&gt;OpenLog&lt;/b&gt;, &lt;b&gt;Log&lt;/b&gt;, and &lt;b&gt;CloseLog&lt;/b&gt; respectively.&lt;br /&gt;This sample is not supported on Itanium-based operating systems.&lt;br /&gt;This code sample implements the following functionality:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Overriding of the &lt;b&gt;LogProviderBase&lt;/b&gt; class.  &lt;/li&gt;&lt;li&gt; Default persistence support that does not require the developer to write custom persistence code.  &lt;/li&gt;
&lt;/ul&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section,  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run the code sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;This sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft Visual Studio  &lt;/li&gt;&lt;li&gt; Microsoft SQL Server Integration Services   &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\HtmlLogProvider Sample&lt;br /&gt;The C# solution for the code sample is located in the CS directory, and the Visual Basic solution is located in the VB directory.&lt;br /&gt;For information about the two-step process required to install the samples, 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;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file in the &lt;b&gt;Samples&lt;/b&gt; folder, use the following procedure to generate this key file. The sample projects are configured on the &lt;b&gt;Signing&lt;/b&gt; tab of the &lt;b&gt;Project Properties&lt;/b&gt; dialog box to sign assemblies at build time with this key file.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2008 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK v2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt to the &lt;b&gt;Samples&lt;/b&gt; folder. The key file that you create in this folder will be used by all SQL Server code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2008&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: *  sn -k SampleKey.snk * &lt;b&gt;Important:   For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework &amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample in Microsoft Visual Studio 2008
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the &lt;b&gt;HtmlLogProviderVB.sln&lt;/b&gt; or &lt;b&gt;HtmlLogProviderCS.sln&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Build Solution&lt;/b&gt; to build the solution.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the Sample
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, follow these steps in order to add it as a connection manager in a package in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To copy the component to the LogProviders folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Copy the assembly (HtmlLogProviderCS.dll or HtmlLogProviderVB.dll) to the LogProviders folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\100\DTS&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by dragging and dropping the assemblies
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Drag the assembly from the LogProviders folder to the folder where the global assembly cache (GAC) is located, at &lt;b&gt;%system%\assembly&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following commands to install the C# version of the component into the GAC:  *  gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\HtmlLogProvider Sample\CS\HtmlLogProviderCS\bin\Debug\HtmlLogProviderCS.dll&amp;quot; &lt;b&gt;- or -Type the following commands to install the Visual Basic version of the component into the GAC:*&lt;/b&gt; *  gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\HtmlLogProvider Sample\VB\HtmlLogProviderVB\bin\Debug\HtmlLogProviderVB.dll&amp;quot; * &lt;a name="testing"&gt;&lt;/a&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;You can now test the custom log provider in a package.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To use the sample log provider in a package
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In an Integration Services project, add a new File connection manager and configure it to point to a file that has the extension &lt;b&gt;.&lt;/b&gt;htm or &lt;b&gt;.&lt;/b&gt;html.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;SSIS&lt;/b&gt; menu, select &lt;b&gt;Logging&lt;/b&gt;, and add the Custom log provider for HTML files (CS) or Custom log provider for HTML files (VB).&lt;/li&gt;&lt;li&gt;In the Configuration column, enter the name of the File connection manager.&lt;/li&gt;&lt;li&gt; Configure logging as appropriate so that the package and its components log their events to the custom log provider.&lt;/li&gt;&lt;li&gt;Run the package, and then open the HTML file to view the logging output. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:18:34 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!HtmlLogProvider Sample 20080611011834A</guid></item><item><title>Updated Wiki: SS2005!HtmlLogProvider Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!HtmlLogProvider Sample&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
HtmlLogProvider Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; New: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The HtmlLogProvider sample demonstrates how to create a custom log provider, the Html Log Provider, which writes logging output to an HTML document.&lt;br /&gt;For more information about how to create a custom log provider, see &lt;b&gt;Creating a Custom Log Provider&lt;/b&gt;. For general information about the use of log providers in Integration Services, see &lt;b&gt;Integration Services Log Providers&lt;/b&gt;.&lt;br /&gt;The custom log provider obtains the name of a destination file that has the extension &lt;b&gt;.htm&lt;/b&gt; or &lt;b&gt;.html&lt;/b&gt; from an existing File connection manager. It outputs logged events to an HTML table in the specified destination file, ignoring the final two standard columns (dataCode and dataBytes) which may contain binary data that cannot be displayed correctly in an HTML document. The sample encapsulates the HTML logging code in a separate HtmlLogWriter helper class for ease of reuse. This helper class has OpenLogHtml, LogHtml, and CloseLogHtml subroutines, which are called from &lt;b&gt;OpenLog&lt;/b&gt;, &lt;b&gt;Log&lt;/b&gt;, and &lt;b&gt;CloseLog&lt;/b&gt; respectively. This sample is not supported on Itanium-based operating systems.&lt;br /&gt;This code sample implements the following functionality:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Overriding of the &lt;b&gt;LogProviderBase&lt;/b&gt; class.  &lt;/li&gt;&lt;li&gt; Default persistence support that does not require the developer to write custom persistence code.  &lt;/li&gt;
&lt;/ul&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run the code sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;This sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft Visual Studio 2005   &lt;/li&gt;&lt;li&gt; Microsoft SQL Server 2005 Integration Services   &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\\Programming Samples\Control Flow\HtmlLogProvider Sample&lt;br /&gt;The C# solution for the code sample is located in the CS directory, and the Visual Basic solution is located in the VB directory.&lt;br /&gt;For information about the two-step process required to install the samples, see &lt;i&gt;Installing Samples&lt;/i&gt;. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file in the &lt;b&gt;Samples&lt;/b&gt; folder, use the following procedure to generate this key file. The sample projects are configured on the &lt;b&gt;Signing&lt;/b&gt; tab of the &lt;b&gt;Project Properties&lt;/b&gt; dialog box to sign assemblies at build time with this key file.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio 2005 command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK v2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt to the &lt;b&gt;Samples&lt;/b&gt; folder. The key file that you create in this folder will be used by all SQL Server 2005 code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: *  sn -k SampleKey.snk * &lt;b&gt;Important:   For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample in Microsoft Visual Studio 2005
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the &lt;b&gt;HtmlLogProviderVB.sln&lt;/b&gt; or &lt;b&gt;HtmlLogProviderCS.sln&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Build Solution&lt;/b&gt; to build the solution.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the Sample
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, follow these steps in order to add it as a connection manager in a package in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To copy the component to the Connections folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Copy the assembly (HtmlLogProviderCS.dll or HtmlLogProviderVB.dll) to the LogProviders folder located at %system%\Program Files\Microsoft SQL Server\90\DTS.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by dragging and dropping the assemblies
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Drag the assembly from the LogProviders folder to the folder where the global assembly cache (GAC) is located, at %system%\assembly.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following commands to install the C# version of the component into the GAC:  *  gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Programming Samples\Control Flow\HtmlLogProvider Sample\CS\HtmlLogProviderCS\bin\Debug\HtmlLogProviderCS.dll&amp;quot; &lt;b&gt;- or -Type the following commands to install the Visual Basic version of the component into the GAC:*&lt;/b&gt; *  gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Programming Samples\Control Flow\HtmlLogProvider Sample\VB\HtmlLogProviderVB\bin\Debug\HtmlLogProviderVB.dll&amp;quot; * &lt;a name="testing"&gt;&lt;/a&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;You can now test the custom log provider in a package.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To use the sample log provider in a package
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In an Integration Services project, add a new File connection manager and configure it to point to a file that has the extension &lt;b&gt;.&lt;/b&gt;htm or &lt;b&gt;.&lt;/b&gt;html.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;SSIS&lt;/b&gt; menu, select &lt;b&gt;Logging&lt;/b&gt;, and add the Custom log provider for HTML files (CS) or Custom log provider for HTML files (VB).&lt;/li&gt;&lt;li&gt;In the Configuration column, enter the name of the File connection manager.&lt;/li&gt;&lt;li&gt; Configure logging as appropriate so that the package and its components log their events to the custom log provider.&lt;/li&gt;&lt;li&gt;Run the package, and then open the HTML file to view the logging output. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:18:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!HtmlLogProvider Sample 20080611011802A</guid></item><item><title>Updated Wiki: SS2005!ForEachSmoEnumerator Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!ForEachSmoEnumerator Sample&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
SMOTableList Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 17 July 2006 &lt;/b&gt;&lt;br /&gt;The SmoTableList sample illustrates how to enumerate the user tables in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. A Script task retrieves the schema and table names and puts them into two variables. Next, a Transact-SQL task executes a DBCC CHECKCONSTRAINTS command using the two variables. This sample is not supported on IA64. This sample requires SQL Server 2005 SP1.&lt;br /&gt;For more information, see the topic, &amp;quot;Foreach Loop Container&amp;quot;, in SQL Server 2005 Books Online.&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run the code sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Running this sample package requires the following:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See the Books Online topic, &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Microsoft SQL Server 2005 Integration Services   &lt;/li&gt;&lt;li&gt; The sample package and data files that it uses must be installed on the local hard disk drive.   &lt;/li&gt;&lt;li&gt; You must have attached and have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database.   For more information about how to install samples, see the topic, &amp;quot;Installing Sample Integration Services Packages&amp;quot;, in SQL Server 2005 Books Online.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\\Programming Samples\Control Flow\SmoTableList\&lt;br /&gt;The C# solution for the code sample is located in the CS directory, and the Visual Basic solution is located in the VB directory.&lt;br /&gt;For information about the two-step process required to install the samples, see &lt;i&gt;Installing Samples&lt;/i&gt;. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file, use the following procedure to generate this key file. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio 2005 command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt window to the Samples folder. The key file that you create in this folder will be used by all SQL Server 2005 code samples.&lt;/li&gt;
&lt;/ol&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &lt;i&gt;&amp;lt;system&lt;/i&gt;drive&amp;gt;_:\Program Files\Microsoft SQL Server\90\Samples. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; At the command prompt, run the following command to generate the key file:  &lt;b&gt;sn -k SampleKey.snk&lt;/b&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open &lt;b&gt;Microsoft Visual Studio 2005&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the solution (.sln) for the desired sample, which is SMOTableList.sln from the CS folder or from the VB folders, depending on the language you want.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Build&lt;/b&gt; / &lt;b&gt;Build SmoTableList&lt;/b&gt; on the menu. &lt;a name="testing"&gt;&lt;/a&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h5&gt;
Testing the Sample
&lt;/h5&gt;The package that the sample creates is saved to the following location:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\\Programming Samples\Control Flow\SmoTableList\&amp;lt;language&amp;gt;\SmoTablelist\bin\debug\ SmoTableSamplePackage.dtsx.&lt;br /&gt;To view the package in the designer, create a new Integration Services project and add the existing .dtsx item to the project. For more information, see the topic, &amp;quot;How to: Add an Item to an Integration Services Project&amp;quot;, in SQL Server 2005 Books Online. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Change History
&lt;/h3&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: Added requirement for SP1.  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Removed the instructions on copying the Smo.dll, SmoEnum.dll, and ConnectionInfo.dll to the %windir%\Microsoft.NET\Framework\v2.0.xxxxx as this step is no longer required.  &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>Wed, 11 Jun 2008 01:17:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!ForEachSmoEnumerator Sample 20080611011702A</guid></item><item><title>Updated Wiki: SS2008!ForEachDirectory Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!ForEachDirectory Sample&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ForEachDirectory Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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;This code sample demonstrates how to create a custom enumerator and a custom user interface to set properties for the enumerator using the .NET Framework and managed code. &lt;br /&gt;This sample is not supported on Itanium-based operating systems.&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section,  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run the code sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;The ForEachDirectory sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio. You can obtain .NET Framework SDK free of charge. See the Books Online topic, &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Microsoft SQL Server Integration Services   &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\ForEachDirectory Sample&lt;br /&gt;The C# solution for the code sample is located in the CS directory, and the Visual Basic solution is located in the VB directory. &lt;br /&gt;For information about the two-step process required to install the samples, 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;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file, use the following procedure to generate this key file. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2008 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt window to the Samples folder. The key file that you create in this folder will be used by all SQL Server code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2008&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file:&lt;b&gt;sn -k SampleKey.snk&lt;/b&gt; &lt;b&gt;Important:   For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;You will need the public key token from the key file in a subsequent step. To obtain the public key token, first extract the public key from the key file by running the following command at the command prompt:&lt;b&gt;sn -p SampleKey.snk SampleKeyPublic.snk&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Display the public key token by running the following command at the command prompt: &lt;b&gt;sn -t SampleKeyPublic.snk&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Copy the public key token to the clipboard or save for later use.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the ForEachDirectory.sln in the desired Samples directory, which is CS for the C# language, or VB for the Visual Basic language.&lt;/li&gt;&lt;li&gt;In the Solution Explorer, select the ForEachDirectory.cs or ForEachDirectory.vb code.&lt;/li&gt;&lt;li&gt;In the code, locate the &lt;b&gt;DtsForEachEnumerator&lt;/b&gt; attribute. In that line of code, replace the existing value of the public key token in the* UITypeName* attribute property. The alphanumeric value after &amp;quot;&lt;b&gt;PublicKeyToken&lt;/b&gt; =&amp;quot; should be replaced with the one displayed in the &lt;b&gt;sn -t&lt;/b&gt; command from a previous step.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Build&lt;/b&gt; / &lt;b&gt;Build ForEachDirectory&lt;/b&gt; on the menu to build the DLL for the project.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the DLL into the ForEachEnumerator folder and the Global Assembly Cache
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish between the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, the component must be copied to the ForEachEnumerators folder, and then added to the Global Assembly Cache in order to use it in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To install the component into the ForEachEnumerators folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Copy the assembly (ForeachDirectoryCS.dll or ForeachDirectoryVB.dll) to the folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the Global Assembly Cache by dragging and dropping the assembly
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Drag the assemby from the ForEachEnumerators folder to the folder where the global assembly cache (GAC) is located, at %system%\assembly.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the Global Assembly Cache by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following command to install the C# version of the component and the user interface into the global assembly cache:** &lt;span class="codeInline"&gt;gacutil.exe -iF &amp;quot;c:\Program Files\Microsoft Sql Server\100\DTS\ ForEachEnumerators\ForEachDirectoryCS.dll&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Type the following command to install the Visual Basic version of the component and the user interface into the global assembly cache:** &lt;span class="codeInline"&gt;gacutil.exe -iF &amp;quot;c:\Program Files\Microsoft Sql Server\100\DTS\ForeachEnumerators\ForeachDirectoryVB.dll&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  For simplicity, the user interface for this sample has been put in the same project as the task code; therefore, copying the DLL into the assembly directory is all that is required. If you decide to code the user interface in a different project, then you must add the DLL that contains the user interface to the global assembly cache, in addition to the DLL that contains the code. Only the code must be compiled into a specific directory, however. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;After you complete these steps the enumerator is available in the &lt;b&gt;For Each Loop Editor&lt;/b&gt; of the For Each Loop container.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To use the sample in Business Intelligence Development Studio 
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;From the menu, click &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;New&lt;/b&gt; | &lt;b&gt;Project&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;New Project&lt;/b&gt; dialog box, in the &lt;b&gt;Project Types&lt;/b&gt;, click &lt;b&gt;Business Intelligence Projects&lt;/b&gt; and in the right pane, click &lt;b&gt;Integration Services Project&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Name&lt;/b&gt; box, type &lt;i&gt;ForEachDirectory&lt;/i&gt; as the name for the new project. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Location&lt;/b&gt; box, select the location where you want to save the file. Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;Solution Explorer&lt;/b&gt; dialog box, double-click Package.dtsx.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Location&lt;/b&gt; box, select the location you want to save the file to. Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;Solution Explorer&lt;/b&gt; dialog box, double-click Package.dtsx.&lt;/li&gt;&lt;li&gt;Add the ForEachLoop container to the Control Flow surface of a package.&lt;/li&gt;&lt;li&gt;Open the Foreach Loop Editor by double-clicking the ForEachLoop container added in step one.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Collection&lt;/b&gt; node, and select the ForEachDirectory enumerator from the Enumerator dropdown.&lt;/li&gt;&lt;li&gt;Specify the values of the properties of the ForEachDirectory enumerator, and then click &lt;b&gt;OK&lt;/b&gt;. &lt;a name="testing"&gt;&lt;/a&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;After you have added the sample component to a Data Flow task in a package, you can configure it in SSIS Designer. The ForEachDirectory enumerator has five properties that control its execution behavior.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Property &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; RootDirectorySource&lt;/td&gt;&lt;td&gt; Specifies the source for the RootDirectory property which can be set by a ConnectionManager, Variable, or DirectInput. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; RootDirectory&lt;/td&gt;&lt;td&gt; Specifies the directory where the enumerator begins its enumerating. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IncludeRootDirectory&lt;/td&gt;&lt;td&gt; Specifies whether the root directory is included in the directories that are enumerated. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; EnumerateSubFolders&lt;/td&gt;&lt;td&gt; Specifies whether the subfolders of the folders that is contained in the root directory are enumerated. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SiblingFoldersBeforeSubFolders&lt;/td&gt;&lt;td&gt; When EnumerateSubFolders is &lt;b&gt;true&lt;/b&gt;, specifies whether the enumerator enumerates the sibling folders first, or whether the complete directory structure is enumerated first. &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>Wed, 11 Jun 2008 01:16:42 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!ForEachDirectory Sample 20080611011642A</guid></item><item><title>Updated Wiki: SS2005!ForEachDirectory Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!ForEachDirectory Sample&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
ForEachDirectory Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;This code sample demonstrates how to create a custom enumerator and a custom user interface to set properties for the enumerator using the .NET Framework and managed code. This sample is not supported on IA64.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run the code sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;The ForEachDirectory sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See the Books Online topic, &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Microsoft SQL Server 2005 Integration Services   &lt;/li&gt;
&lt;/ul&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;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\\Programming Samples\Control Flow\ForEachDirectory Sample&lt;br /&gt;The C# solution for the code sample is located in the CS directory, and the Visual Basic solution is located in the VB directory. &lt;br /&gt;For information about the two-step process required to install the samples, see &lt;i&gt;Installing Samples&lt;/i&gt;. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file, use the following procedure to generate this key file. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio 2005 command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt window to the Samples folder. The key file that you create in this folder will be used by all Microsoft SQL Server 2005 code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file:&lt;b&gt;sn -k SampleKey.snk&lt;/b&gt; *Important:  &lt;/li&gt;
&lt;/ol&gt;        For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.*&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;You will need the public key token from the key file in a subsequent step. To obtain the public key token, first extract the public key from the key file by running the following command at the command prompt:&lt;b&gt;sn -p SampleKey.snk SampleKeyPublic.snk&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Display the public key token by running the following command at the command prompt: &lt;b&gt;sn -t SampleKeyPublic.snk&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Copy the public key token to the clipboard or save for later use.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open &lt;b&gt;Microsoft Visual Studio 2005&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the ForEachDirectory.sln in the desired Samples directory, which is CS for the C# language, or VB for the Visual Basic language.&lt;/li&gt;&lt;li&gt;In the Solution Explorer, select the ForEachDirectory.cs or ForEachDirectory.vb code.&lt;/li&gt;&lt;li&gt;In the code, locate the &lt;b&gt;DtsTask&lt;/b&gt; attribute. In that line of code, replace the existing value of the public key token in the* UITypeName* attribute property in the IncrementTask.cs. The alphanumeric value after &amp;quot;&lt;b&gt;PublicKeyToken&lt;/b&gt; =&amp;quot; should be replaced with the one displayed in the &lt;b&gt;sn -t&lt;/b&gt; command from a previous step.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Build&lt;/b&gt; / &lt;b&gt;Build ForEachDirectory&lt;/b&gt; on the menu to build the DLL for the project.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the DLL into the ForEachEnumerator folder and the Global Assembly Cache
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish between the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, the component must be copied to the ForEachEnumerators folder, and then added to the Global Assembly Cache in order to use it in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To install the component into the ForEachEnumerators folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Copy the assembly (ForeachDirectoryCS.dll or ForeachDirectoryVB.dll) to the folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\90\DTS\ForEachEnumerators&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Open the directory for the global assembly cache at &lt;b&gt;%system%\assembly&lt;/b&gt;. For most computers, this will be &lt;b&gt;C:\Windows\assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Select the assembly in the first window, and then drag and drop it into the window that contains the &lt;b&gt;assembly&lt;/b&gt; folder.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the Global Assembly Cache by dragging and dropping the assembly
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Copy the assembly (ForeachDirectoryCS.dll or ForeachDirectoryVB.dll) to the folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\90\DTS\ForEachEnumerators&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Open the directory for the global assembly cache at &lt;b&gt;%system%\assembly&lt;/b&gt;. For most computers, this will be &lt;b&gt;C:\Windows\assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Select the assembly in the first window, and then drag and drop it into the window that contains the &lt;b&gt;assembly&lt;/b&gt; folder.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the Global Assembly Cache by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following command to install the C# version of the component and the user interface into the global assembly cache:** &lt;span class="codeInline"&gt;gacutil.exe -iF &amp;quot;c:\Program Files\Microsoft Sql Server\90\DTS\ ForEachEnumerators\ForEachDirectoryCS.dll&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Type the following command to install the Visual Basic version of the component and the user interface into the global assembly cache:** &lt;span class="codeInline"&gt;gacutil.exe -iF &amp;quot;c:\Program Files\Microsoft Sql Server\90\DTS\ForeachEnumerators\ForeachDirectoryVB.dll&amp;quot;&lt;/span&gt; &lt;b&gt;Note&lt;/b&gt; For simplicity, the user interface for this sample has been put in the same project as the task code; therefore, copying the DLL into the assembly directory is all that is required. If you decide to code the user interface in a different project, then you must add the DLL that contains the user interface to the global assembly cache, in addition to the DLL that contains the code. Only the code must be compiled into a specific directory, however.&lt;/li&gt;
&lt;/ol&gt;After you complete these steps the enumerator is available in the &lt;b&gt;For Each Loop Editor&lt;/b&gt; of the For Each Loop container.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To use the sample in Business Intelligence Development Studio 
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;From the menu, click &lt;b&gt;File / New / Project&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;New Project&lt;/b&gt; dialog box, in the &lt;b&gt;Project Types&lt;/b&gt;, click &lt;b&gt;Business Intelligence Projects&lt;/b&gt; and in the right pane, click &lt;b&gt;Integration Services Project&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Name&lt;/b&gt; box, type &lt;i&gt;ForEachDirectory&lt;/i&gt; as the name for the new project. &lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Location&lt;/b&gt; box, select the location where you want to save the file. Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;Solution Explorer&lt;/b&gt; dialog box, double-click Package.dtsx.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Location&lt;/b&gt; box, select the location you want to save the file to. Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;From the &lt;b&gt;Solution Explorer&lt;/b&gt; dialog box, double-click Package.dtsx.&lt;/li&gt;&lt;li&gt;Add the ForEachLoop container to the Control Flow surface of a package.&lt;/li&gt;&lt;li&gt;Open the Foreach Loop Editor by double-clicking the ForEachLoop container added in step one.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Collection&lt;/b&gt; node, and select the ForEachDirectory enumerator from the Enumerator dropdown.&lt;/li&gt;&lt;li&gt;Specify the values of the properties of the ForEachDirectory enumerator, and then click &lt;b&gt;OK&lt;/b&gt;. &lt;a name="testing"&gt;&lt;/a&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;After you have added the sample component to a Data Flow task in a package, you can configure it in SSIS Designer. The ForEachDirectory enumerator has five properties that control its execution behavior.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Property &lt;/th&gt;&lt;th&gt;  Description  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; RootDirectorySource&lt;/td&gt;&lt;td&gt; Specifies the source for the RootDirectory property which can be set by a ConnectionManager, Variable, or DirectInput. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; RootDirectory&lt;/td&gt;&lt;td&gt; Specifies the directory where the enumerator begins its enumerating. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IncludeRootDirectory&lt;/td&gt;&lt;td&gt; Specifies whether the root directory is included in the directories that are enumerated. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; EnumerateSubFolders&lt;/td&gt;&lt;td&gt; Specifies whether the subfolders of the folders that is contained in the root directory are enumerated. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SiblingFoldersBeforeSubFolders&lt;/td&gt;&lt;td&gt; When EnumerateSubFolders is &lt;b&gt;true&lt;/b&gt;, specifies whether the enumerator enumerates the sibling folders first, or whether the complete directory structure is enumerated first. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Change History
&lt;/h3&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;  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  New content: Incorporated instructions on how to use the sample in Business Intelligence Development Studio. Added table describing the properties found in the custom user interface.  &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>Wed, 11 Jun 2008 01:16:08 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!ForEachDirectory Sample 20080611011608A</guid></item><item><title>Updated Wiki: SS2008!Excel2 Custom Connection Manager Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2008!Excel2 Custom Connection Manager Sample&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Excel2 Custom Connection Manager Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&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 Excel2 Custom Connection Manager sample demonstrates how to create a custom connection manager, the Excel2 Connection Manager, and its associated user interface.&lt;br /&gt;This sample is not supported on Itanium-based operating systems.&lt;br /&gt;For more information about how to create a custom connection manager, see &lt;b&gt;Creating a Custom Connection Manager&lt;/b&gt;. For general information about the use of connection managers in Integration Services, see &lt;b&gt;Integration Services Connections&lt;/b&gt; and &lt;b&gt;Connection Managers&lt;/b&gt;.&lt;br /&gt;The custom connection manager connects to an available Microsoft Excel workbook by using the OleDb .NET Framework Data Provider and the Microsoft OLE DB Provider for Jet, and returns an open &lt;b&gt;OleDbConnection&lt;/b&gt; object from its &lt;b&gt;AcquireConnection&lt;/b&gt; method. When you create a new instance of the Excel2 Connection Manager in a package, its custom user interface prompts you for the path of the Excel workbook. This connection manager also provides a check box to specify Import Mode. This resolves an issue that occurs frequently when an Excel column contains mixed text and numeric data.&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;  The Excel2 Custom Connection Manager sample cannot be used with the Excel source and destination. Test it with the ADO NET source and destination instead. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This code sample implements the following functionality:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Overriding of the &lt;b&gt;ConnectionManagerBase&lt;/b&gt; class.  &lt;/li&gt;&lt;li&gt; Persistence support.  &lt;/li&gt;
&lt;/ul&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section,  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run this sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;This sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft Visual Studio  &lt;/li&gt;&lt;li&gt; Microsoft SQL Server Integration Services   &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample&lt;br /&gt;The C# solution for the code sample is located in the Excel2ConnMgrCS directory, and the Visual Basic solution is located in the Excel2ConnMgrVB directory.&lt;br /&gt;For information about the two-step process required to install the samples, see &lt;i&gt;Considerations for Installing SQL Server Samples and Sample Databases&lt;/i&gt;. To obtain the latest version of the samples, including new samples released after the original release of SQL Server, see the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codepex.com/sqlserversamples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file in the &lt;b&gt;Samples&lt;/b&gt; folder, use the following procedure to generate this key file. The sample projects are configured on the Signing tab of the Project Properties dialog box to sign assemblies at build time with this key file.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2008 Command Prompt&lt;/b&gt;.- or -To open a Microsoft .NET Framework command prompt, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK v2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the Command Prompt window to the &lt;b&gt;Samples&lt;/b&gt; folder. The key file that you create in this folder will be used by all SQL Server code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2008&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &lt;i&gt;&amp;lt;drive&amp;gt;&lt;/i&gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: *  sn -k SampleKey.snk * &lt;b&gt;Important:   For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;You will need the public key token from the key file in a subsequent step. To obtain the public key token, first extract the public key from the key file to a new file by running the following command at the command prompt: *  sn -p SampleKey.snk SampleKeyPublic.snk *Now display the public key token from the new file by running the following command at the command prompt: *  sn -t SampleKeyPublic.snk *Copy the public key token to the clipboard or save it for later use.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample in Microsoft Visual Studio 2008
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the &lt;b&gt;Excel2ConnMgrVB.sln&lt;/b&gt; or &lt;b&gt;Excel2ConnMgrCS.sln&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the Solution Explorer, select the &lt;b&gt;Excel2ConnMgrVB or Excel2ConnMgrCS&lt;/b&gt; project.&lt;/li&gt;&lt;li&gt;Locate the &lt;b&gt;DtsConnection&lt;/b&gt; attribute before the class declaration in the Excel2ConnMgrCS.cs file or the Excel2ConnMgrVB.vb file and replace the alphanumeric value of the Public Key Token in the &lt;b&gt;UITypeName&lt;/b&gt; property of the attribute with the public key token obtained earlier from the key file.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Build Solution&lt;/b&gt; to build the solution.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the Sample
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, follow these steps in order to add it as a connection manager in a package in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To copy the component to the Connections folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Copy the assemblies (Excel2ConnMgrCS.dll and Excel2ConnMgrUICS.dll, or Excel2ConnMgrVB.dll and Excel2ConnMgrUIVB.dll) to the &lt;b&gt;Connections&lt;/b&gt; folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\100\DTS\Connections&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by dragging and dropping the assemblies
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Drag the assemblies from the Connections folder to the folder where the global assembly cache (GAC) is located, at &lt;b&gt;%system%\assembly&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following commands to install the C# version of the component and the user interface into the GAC:  * {&amp;quot; gacutil.exe -iF &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\CS\Excel2ConnMgrCS\bin\Debug\Excel2ConnMgrCS.dll&amp;quot;&lt;/li&gt;
&lt;/ol&gt;gacutil.exe -iF &amp;quot;C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\CS\Excel2ConnMgrUICS\bin\Debug\Excel2ConnMgrUICS.dll&amp;quot; &amp;quot;}&lt;b&gt;- or -Type the following commands to install the Visual Basic version of the component and the user interface into the GAC:*&lt;/b&gt; * {&amp;quot; gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\VB\Excel2ConnMgrVB\bin\Debug\Excel2ConnMgrVB.dll&amp;quot;&lt;br /&gt;gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\VB\Excel2ConnMgrVB\bin\Debug\Excel2ConnMgrUIVB.dll&amp;quot; &amp;quot;}* &lt;a name="testing"&gt;&lt;/a&gt;  &lt;br /&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;You can now test the custom connection manager in a package.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To use the sample connection manager in a package
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In the connection managers area of SSIS Designer, right-click, select &lt;b&gt;New Connection&lt;/b&gt;, and in the list of available connection types, select EXCEL2. Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Edit the new connection manager. In the &lt;b&gt;Excel2 Connection Manager Editor&lt;/b&gt;, locate an available Excel workbook file. Use the check boxes to specify settings for the headers and Import Mode settings. &lt;b&gt;Note:   The Excel2 Custom Connection Manager sample cannot be used with the Excel source, which supports only the built-in Excel connection manager. Test it with the ADO NET source instead.&lt;/b&gt; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 01:15:46 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Excel2 Custom Connection Manager Sample 20080611011546A</guid></item><item><title>Updated Wiki: SS2005!Excel2 Custom Connection Manager Sample</title><link>http://www.codeplex.com/MSFTISProdSamples/Wiki/View.aspx?title=SS2005!Excel2 Custom Connection Manager Sample&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Excel2 Custom Connection Manager Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; New: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The Excel2 Custom Connection Manager sample demonstrates how to create a custom connection manager, the Excel2 Connection Manager, and its associated user interface. This sample is not supported on Itanium-based operating systems.&lt;br /&gt;For more information about how to create a custom connection manager, see &lt;b&gt;Creating a Custom Connection Manager&lt;/b&gt;. For general information about the use of connection managers in Integration Services, see &lt;b&gt;Integration Services Connections&lt;/b&gt; and &lt;b&gt;Connection Managers&lt;/b&gt;.&lt;br /&gt;The custom connection manager connects to an available Microsoft Excel workbook by using the OleDb .NET Framework Data Provider and the Microsoft OLE DB Provider for Jet, and returns an open &lt;b&gt;OleDbConnection&lt;/b&gt; object from its &lt;b&gt;AcquireConnection&lt;/b&gt; method. When you create a new instance of the Excel2 Connection Manager in a package, its custom user interface prompts you for the path of the Excel workbook. This connection manager also provides a check box to specify Import Mode. This resolves an issue that occurs frequently when an Excel column contains mixed text and numeric data.&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;  The Excel2 Custom Connection Manager sample cannot be used with the Excel source and destination. Test it with the DataReader source and destination instead. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This code sample implements the following functionality:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Overriding of the &lt;b&gt;ConnectionManagerBase&lt;/b&gt; class.  &lt;/li&gt;&lt;li&gt; Persistence support.  &lt;/li&gt;
&lt;/ul&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;
Running the Sample
&lt;/h3&gt;If you already know how to locate, build, and install code samples, you can go directly to the section  &lt;a href="#testing"&gt;testing&lt;/a&gt; , and read about how to configure and run this sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;This sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft Visual Studio 2005   &lt;/li&gt;&lt;li&gt; Microsoft SQL Server 2005 Integration Services   &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Location
&lt;/h3&gt;If the code sample was installed to the default location, the sample is located in the following directory:&lt;br /&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\\Programming Samples\Control Flow\Excel2ConnectionManager Sample&lt;br /&gt;The C# solution for the code sample is located in the Excel2ConnMgrCS directory, and the Visual Basic solution is located in the Excel2ConnMgrVB directory.&lt;br /&gt;For information about the two-step process required to install the samples, see &lt;i&gt;Installing Samples&lt;/i&gt;. To obtain the latest version of the samples, including new samples released after the original release of SQL Server 2005, see &lt;a href="http://go.microsoft.com/fwlink/?LinkID=58560" class="externalLink"&gt;SQL Server 2005 Samples and Sample Databases (April 2006)&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already generated a strong name key file in the &lt;b&gt;Samples&lt;/b&gt; folder, use the following procedure to generate this key file. The sample projects are configured on the Signing tab of the Project Properties dialog box to sign assemblies at build time with this key file.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;To open a Microsoft Visual Studio 2005 command prompt, click Start, point to All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and then click Visual Studio 2005 Command Prompt.- or -To open a Microsoft .NET Framework command prompt, click Start, point to All Programs, point to Microsoft .NET Framework SDK v2.0, and then click SDK Command Prompt.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the Command Prompt window to the &lt;b&gt;Samples&lt;/b&gt; folder. The key file that you create in this folder will be used by all SQL Server 2005 code samples. &lt;b&gt;Note:   To determine the folder where samples are located, click Start, point to All Programs, point to Microsoft SQL Server 2005, point to Documentation and Tutorials, and then click Samples Directory. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: *  sn -k SampleKey.snk * &lt;b&gt;Important:   For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;You will need the public key token from the key file in a subsequent step. To obtain the public key token, first extract the public key from the key file to a new file by running the following command at the command prompt: *  sn -p SampleKey.snk SampleKeyPublic.snk *Now display the public key token from the new file by running the following command at the command prompt: *  sn -t SampleKeyPublic.snk *Copy the public key token to the clipboard or save it for later use.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To build the sample in Microsoft Visual Studio 2005
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; | &lt;b&gt;Open&lt;/b&gt; menu, click &lt;b&gt;Project&lt;/b&gt; and open the &lt;b&gt;Excel2ConnMgrVB.sln&lt;/b&gt; or &lt;b&gt;Excel2ConnMgrCS.sln&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the Solution Explorer, select the &lt;b&gt;Excel2ConnMgrVB or Excel2ConnMgrCS&lt;/b&gt; project.&lt;/li&gt;&lt;li&gt;Locate the &lt;b&gt;DtsConnection&lt;/b&gt; attribute before the class declaration in the Excel2ConnMgrCS.cs file or the Excel2ConnMgrVB.vb file and replace the alphanumeric value of the Public Key Token in the &lt;b&gt;UITypeName&lt;/b&gt; property of the attribute with the public key token obtained earlier from the key file.&lt;/li&gt;&lt;li&gt;On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Build Solution&lt;/b&gt; to build the solution.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Installing the Sample
&lt;/h3&gt;This sample is provided in both Visual Basic and C#. To distinguish the assemblies for each version of the sample, the name of the output assembly has CS or VB appended. After successfully building the component, follow these steps in order to add it as a connection manager in a package in Business Intelligence Development Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To copy the component to the Connections folder
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Copy the assemblies (Excel2ConnMgrCS.dll and Excel2ConnMgrUICS.dll, or Excel2ConnMgrVB.dll and Excel2ConnMgrUIVB.dll) to the &lt;b&gt;Connections&lt;/b&gt; folder located at &lt;b&gt;%system%\Program Files\Microsoft SQL Server\90\DTS\Connections&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by dragging and dropping the assemblies
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Windows Explorer or your preferred application for working in the file system.&lt;/li&gt;&lt;li&gt;Drag the assemblies from the Connections folder to the folder where the global assembly cache (GAC) is located, at &lt;b&gt;%system%\assembly&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To install the component into the global assembly cache (GAC) by using gacutil.exe
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Command Prompt window.&lt;/li&gt;&lt;li&gt;Type the following commands to install the C# version of the component and the user interface into the GAC:  * {&amp;quot; gacutil.exe -iF &amp;quot;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\CS\Excel2ConnMgrCS\bin\Debug\Excel2ConnMgrCS.dll&amp;quot;&lt;/li&gt;
&lt;/ol&gt;gacutil.exe -iF &amp;quot;C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\CS\Excel2ConnMgrUICS\bin\Debug\Excel2ConnMgrUICS.dll&amp;quot; &amp;quot;}&lt;b&gt;- or -Type the following commands to install the Visual Basic version of the component and the user interface into the GAC:*&lt;/b&gt; * {&amp;quot; gacutil.exe -iF &amp;quot; C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Programming Samples\Control Flow\Excel2ConnectionManager Sample\VB\Excel2ConnMgrVB\bin\Debug\Excel2ConnMgrVB.dll&amp;quot;&lt;br /&gt;gacutil.exe -iF &amp;quot;