<?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: Engine</title><link>http://www.codeplex.com/MSFTEngProdSamples/Project/ProjectRss.aspx</link><description>This project contains Engine samples released with Microsoft SQL Server product.    </description><item><title>Source code checked in, #11622</title><link>http://www.codeplex.com/MSFTEngProdSamples/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!Readme_VerifyBackup</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_VerifyBackup&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_VerifyBackup 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 sample demonstrates techniques for verifying a backup on a backup device to ensure the data can be used to restore the appropriate databases. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application lets users select the backup device and verify the contents of the selected backup. This sample provides a user interface that lets the user specify the SQL Server instance to connect to and whether to use Windows Authentication. The user can then select which database and backup file location and name.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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\Engine\Programmability\SMO\VerifyBackup&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;VerifyBackup.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:24:45 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_VerifyBackup 20080611122445A</guid></item><item><title>Updated Wiki: SS2005!Readme_VerifyBackup</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_VerifyBackup&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_VerifyBackup
&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 sample demonstrates techniques for verifying a backup on a backup device to ensure the data can be used to restore the appropriate databases. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application lets users select the backup device and verify the contents of the selected backup. This sample provides a user interface that lets the user specify the SQL Server instance to connect to and whether to use Windows Authentication. The user can then select which database and backup file location and name.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\VerifyBackup&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;VerifyBackup.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:24:17 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_VerifyBackup 20080611122417A</guid></item><item><title>Updated Wiki: SS2008!Readme_UtilityConversion</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_UtilityConversion&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_UtilityConversion 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 sample demonstrates techniques for implementing assembly functions (SQLCLR) in database applications. By using SQL Server common language runtime (CLR) capabilities of Microsoft SQL Server, this application lets users run CLR assembly code from within SQL Server. This sample provides sample code to perform various datatype conversions.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; This sample is used by the LoadRegAssembly.exe from the LoadRegAssembly project.  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
&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\Engine\Programmability\SMO\UtilityConversion&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;UtilityConversion.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:23:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_UtilityConversion 20080611122331A</guid></item><item><title>Updated Wiki: SS2005!Readme_UtilityConversion</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_UtilityConversion&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_UtilityConversion
&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 sample demonstrates techniques for implementing assembly functions (SQLCLR) in database applications. By using SQL Server common language runtime (CLR) capabilities of Microsoft SQL Server, this application lets users run CLR assembly code from within SQL Server. This sample provides sample code to perform various datatype conversions.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; This sample is used by the LoadRegAssembly.exe from the LoadRegAssembly project.  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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\UtilityConversion&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;UtilityConversion.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:23:11 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_UtilityConversion 20080611122311A</guid></item><item><title>Updated Wiki: SS2008!Readme_Tracer</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_Tracer&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Tracer 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 demonstrates techniques for implementing profile trace from the local instance of SQL Server to the output console. Using SQL Server Trace Management objects (TMO), this console application can be used to display trace information from the local instance of SQL Server. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.  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
&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\Engine\Programmability\SMO\Tracer&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;Tracer.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:22:51 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_Tracer 20080611122251A</guid></item><item><title>Updated Wiki: SS2005!Readme_Tracer</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_Tracer&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Tracer
&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 sample demonstrates techniques for implementing profile trace from the local instance of SQL Server to the output console. Using SQL Server Trace Management objects (TMO), this console application can be used to display trace information from the local instance of SQL Server. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.  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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\Tracer&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;Tracer.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:22:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_Tracer 20080611122231A</guid></item><item><title>Updated Wiki: SS2008!Readme_SqlService</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_SqlService&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SqlService 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 sample demonstrates techniques for requesting SQL Server services in database applications. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application lets users query the services of the selected server. This sample provides a user interface that permits specifying the SQL Server instance to connect to. The user can then request the services.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This sample requires that the following components are installed.&lt;br /&gt; &lt;br /&gt;* &lt;br /&gt;          &lt;br /&gt;           .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.  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
&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\Engine\Programmability\SMO\SqlService&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SqlService.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:22:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SqlService 20080611122214A</guid></item><item><title>Updated Wiki: SS2005!Readme_SqlService</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_SqlService&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SqlService
&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 sample demonstrates techniques for requesting SQL Server services in database applications. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application lets users query the services of the selected server. This sample provides a user interface that permits specifying the SQL Server instance to connect to. The user can then request the services.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.  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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SqlService&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SqlService.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:21:51 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_SqlService 20080611122151A</guid></item><item><title>Updated Wiki: SS2008!Readme_SqlServerList</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_SqlServerList&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SqlServerList 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 sample demonstrates two techniques for retrieving a list of computers that are running SQL Server on the network to the list boxes. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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\Engine\Programmability\SMO\SqlServerList&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SqlServerList.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.  &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 00:21:00 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SqlServerList 20080611122100A</guid></item><item><title>Updated Wiki: SS2005!Readme_SqlServerList</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_SqlServerList&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SqlServerList
&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 sample demonstrates two techniques for retrieving a list of computers that are running SQL Server on the network to the list boxes. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SqlServerList&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SqlServerList.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:20:22 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_SqlServerList 20080611122022A</guid></item><item><title>Updated Wiki: SS2008!Readme_SMOPing</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_SMOPing&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoPing 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 sample demonstrates techniques for requesting a SQL Server login in a console database application. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application connects to the selected server.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   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
&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\Engine\Programmability\SMO\SmoPing&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoPing.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:18:58 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SMOPing 20080611121858A</guid></item><item><title>Updated Wiki: SS2005!Readme_SMOPing</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_SMOPing&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoPing
&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 sample demonstrates techniques for requesting a SQL Server login in a console database application. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application connects to the selected server.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SmoPing&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoPing.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:18:29 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_SMOPing 20080611121829A</guid></item><item><title>Updated Wiki: SS2005!ReadMe_SmoEvents</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!ReadMe_SmoEvents&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
ReadMe_SmoEvents
&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 sample demonstrates techniques for displaying SQL Server events in a console database application. By using SQL Server Management Object (SMO) capabilities of Microsoft SQL Server, this application connects to the server on which the program is executing.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.  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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SmoEvents&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoEvents.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:17:40 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!ReadMe_SmoEvents 20080611121740A</guid></item><item><title>Updated Wiki: SS2008!Readme_SmoCompare</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_SmoCompare&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoCompare 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 demonstrates techniques for implementing a comparison of two database objects. By using SQL Server Management Objects (SMO), the application lets the user compare property and schema information for two objects. The application demonstrates the general object properties, iteration through properties, and exception handling for errors relating to object properties.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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\Engine\Programmability\SMO\SmoCompare&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoCompare.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The following types of database objects have been tested with this sample. Comparing other kinds of database objects is not supported.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Database  &lt;/li&gt;&lt;li&gt; Table  &lt;/li&gt;&lt;li&gt; Stored Procedure  &lt;/li&gt;&lt;li&gt; View  &lt;/li&gt;&lt;li&gt; User  &lt;/li&gt;&lt;li&gt; Schemas  &lt;/li&gt;&lt;li&gt; UserDefinedFunction  &lt;/li&gt;&lt;li&gt; Role  &lt;/li&gt;&lt;li&gt; Endpoint  &lt;/li&gt;&lt;li&gt; JobServer   &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 00:17:20 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SmoCompare 20080611121720A</guid></item><item><title>Updated Wiki: SS2005!Readme_SmoCompare</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_SmoCompare&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoCompare
&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;This sample demonstrates techniques for implementing a comparison of two database objects. By using SQL Server Management Objects (SMO), the application lets the user compare property and schema information for two objects. The application demonstrates the general object properties, iteration through properties, and exception handling for errors relating to object properties.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.  &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   &lt;/li&gt;&lt;li&gt; You must compile the ServerConnect component first, because this sample has a dependency on the ServerConnect sample.   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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SmoCompare&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoCompare.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The following types of database objects have been tested with this sample. Comparing other kinds of database objects is not supported.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Database  &lt;/li&gt;&lt;li&gt; Table  &lt;/li&gt;&lt;li&gt; Stored Procedure  &lt;/li&gt;&lt;li&gt; View  &lt;/li&gt;&lt;li&gt; User  &lt;/li&gt;&lt;li&gt; Schemas  &lt;/li&gt;&lt;li&gt; UserDefinedFunction  &lt;/li&gt;&lt;li&gt; Role  &lt;/li&gt;&lt;li&gt; Endpoint  &lt;/li&gt;&lt;li&gt; JobServer  &lt;/li&gt;
&lt;/ul&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 comments section and information about which kinds of database objects are supported.  &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;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:17:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_SmoCompare 20080611121702A</guid></item><item><title>Updated Wiki: SS2008!Readme_SmoBrowser</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_SmoBrowser&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoBrowser 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 sample program lets you browse the hierarchy of SMO objects by using Microsoft .NET reflection. It shows how exactly SQL Server Management Objects (SMO) represent database objects with all their collections and properties. &lt;br /&gt; &lt;br /&gt; Microsoft .NET reflection reflects SMO objects and collections directly, which is useful to test because it lets you see exactly what properties and collections are there, and what their values are, without writing any test code. Most of the functionality comes from the property grid that you can see on the right side. By using the property grid, you can see all properties with their values, and examine named properties.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator.&lt;br /&gt;    &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; 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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   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
&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\Engine\Programmability\SMO\SmoBrowser&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoBrowser.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project. &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 00:16:42 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SmoBrowser 20080611121642A</guid></item><item><title>Updated Wiki: SS2005!Readme_SmoBrowser</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_SmoBrowser&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SmoBrowser
&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 sample program lets you browse the hierarchy of SMO objects by using Microsoft .NET reflection. It shows how exactly SQL Server Management Objects (SMO) represent database objects with all their collections and properties. &lt;br /&gt; &lt;br /&gt; Microsoft .NET reflection reflects SMO objects and collections directly, which is useful to test because it lets you see exactly what properties and collections are there, and what their values are, without writing any test code. Most of the functionality comes from the property grid that you can see on the right side. By using the property grid, you can see all properties with their values, and examine named properties.&lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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 &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; SQL Server 2005 Integration Services (SSIS).  &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; The &lt;b&gt;AdventureWorks&lt;/b&gt; OLTP database must be installed.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; database must be attached.   &lt;/li&gt;&lt;li&gt; You must have administrative permissions on the &lt;b&gt;AdventureWorks&lt;/b&gt; database.   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
&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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\SmoBrowser&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; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Building and using the sample using the Command Line Compiler
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a .NET Framework or Microsoft Visual Studio 2005 command prompt. Use the change directory (CD) command to change the current directory of the command prompt window to the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Type the following command to build either the C# or the Visual Basic version of the sample: &lt;span class="codeInline"&gt;for /r %f in (*.sln) do msbuild.exe &amp;quot;%f&amp;quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Building and using the sample from Microsoft Visual Studio 2005 (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From the &lt;b&gt;File&lt;/b&gt; menu in Microsoft Visual Studio 2005, click &lt;b&gt;Open&lt;/b&gt;, click &lt;b&gt;Project&lt;/b&gt;, and then open &lt;b&gt;SmoBrowser.sln&lt;/b&gt; in the solution directory that you want to work in.&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;F5&lt;/b&gt;, or click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu to compile and run the project.&lt;/li&gt;
&lt;/ol&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; 5 December 2005 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instructions for generating a key file, including the name and location of the key file.  &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 00:16:26 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_SmoBrowser 20080611121626A</guid></item><item><title>Updated Wiki: SS2008!Readme_ServiceBrokerConfiguration</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2008!Readme_ServiceBrokerConfiguration&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ServiceBrokerConfiguration 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 sample shows how to create Service Broker objects by using SQL Server Management Objects (SMO). The sample is implemented because several Windows User Controls and classes necessary to create Service Broker objects. &lt;br /&gt;The sample is targeted at a Microsoft .NET Framework developer who wants to learn how to use Service Broker SMO and learn how to create Windows User Controls to manage SQL Server objects. The core scenario is a Microsoft .NET Framework developer who is creating a custom Service Broker management application. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine.  &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\Engine\Programmability\SMO\ServiceBrokerConfiguration&lt;br /&gt;The C# solution for the code sample is located in the CS directory.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt;If you are using the Microsoft .NET Framework SDK, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the Visual Studio Solution
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;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;Locate the root folder of the sample. Type the following command for the default location:&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=C&amp;amp;referringTitle=SS2008%21Readme_ServiceBrokerConfiguration"&gt;C&lt;/a&gt; &lt;span class="codeInline"&gt;cd \Program Files\Microsoft SQL Server\100\Samples\Engine\Programmability\SMO\ServiceBrokerConfiguration\CS\&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Type the following to build the Visual Studio solution:  &lt;/li&gt;&lt;li&gt; &lt;span class="codeInline"&gt;msbuild &lt;/span&gt;   Or, if you are using Visual Studio 2005, do the following:&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Open the \CS\ConfigurationComponent.sln solution file.   &lt;/li&gt;&lt;li&gt; Press F6 to build the solution.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Set up SQL Server sample database and sample XML schemas
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Locate the \CS\Script folder.&lt;/li&gt;&lt;li&gt;Open and run setup.sql from within SQL Server Management Studio.If you are setting up Remote Service Binding:&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Set up SQL Server master keys (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Locate the \CS\Script folder.&lt;/li&gt;&lt;li&gt;Open masterkey.sql from within SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Enter a password for the master database key in the CREATE MASTER KEY ENCRYPTION BY PASSWORD = statement.&lt;/li&gt;&lt;li&gt;Enter a password for the ssb_ConfigurationSample database key in the CREATE MASTER KEY ENCRYPTION BY PASSWORD = statement.&lt;/li&gt;&lt;li&gt;Run masterkey.sql.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;The default location for the C# version is C:\Program Files\Microsoft SQL Server\100\Samples\SMO\ServiceBrokerConfiguration\CS\SampleApplication\bin\Debug\SampleApplication.exe.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To connect to a local SQL Server instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Enter a server name in the Server Name field, or accept the default (local) server name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Connect&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To configure the sample for a new database.
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Options&lt;/b&gt; on the &lt;b&gt;Objects&lt;/b&gt; tab.&lt;/li&gt;&lt;li&gt;Enter a ScriptPath, or accept the default path. The ScriptPath is used to export a script to a file.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt;. The &lt;b&gt;Create&lt;/b&gt; button configures the sample, including setting the BaseUrn.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create MessageTypes
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;MessageType&lt;/b&gt;.**&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingRequest&lt;/b&gt; for the MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Message Type&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingAccept&lt;/b&gt; for the MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Message Type&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingComplete&lt;/b&gt; for MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create a contract
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Contract&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;MessageTypeMappings&lt;/b&gt; drop-down menu.&lt;/li&gt;&lt;li&gt;Select all MessageTypes created above.&lt;/li&gt;&lt;li&gt;Select &lt;b&gt;Target&lt;/b&gt; for ShippingAccept and ShippingComplete MessageSource.&lt;/li&gt;&lt;li&gt;Close the &lt;b&gt;MessageTypeMappings&lt;/b&gt; drop-down menu.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;Shipping&lt;/b&gt; for the contract name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create a new contact.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create queues
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Queue&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ClientQueue&lt;/b&gt; for the queue name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new queue, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Queue&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ServerQueue&lt;/b&gt; for queue name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new queue.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create services without RemoteServiceBinding enabled
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Service&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ClientService&lt;/b&gt; for the service name.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;ContractNames&lt;/b&gt; drop-down menu and select the Shipping contract.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;QueueName&lt;/b&gt; drop-down menu and select the ClientQueue queue.&lt;/li&gt;&lt;li&gt;Enter or select a &lt;b&gt;ServiceOwnerName&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new service, and then click &lt;b&gt;New&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ServerService&lt;/b&gt; for the service name.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;ContractNames&lt;/b&gt; drop-down and select the Shipping contract.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;QueueName&lt;/b&gt; drop-down menu and select the ServerQueue queue.&lt;/li&gt;&lt;li&gt;Enter or select a &lt;b&gt;ServiceOwnerName&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new service.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create services with RemoteServiceBinding enabled
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Service&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;RemoteService&lt;/b&gt; for the service name.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;ContractNames&lt;/b&gt; drop-down menu and select the Shipping contract.&lt;/li&gt;&lt;li&gt;Set EnableRemoteService to true.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;QueueName&lt;/b&gt; drop-down menu and select the ClientQueue queue.&lt;/li&gt;&lt;li&gt;Enter or select a &lt;b&gt;ServiceOwnerName&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new service, and then click &lt;b&gt;New&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To enable anonymous access for a Remote Service
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Select &lt;b&gt;RemoteService within the object tree&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Set AllowAnonymous to True.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Alter&lt;/b&gt; to alter the service.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create a Target Instance Endpoint
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Target Instance Endpoint&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter a name, or accept the default name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To set a script export path
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the &lt;b&gt;Object&lt;/b&gt; tab if this tab is not already active.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Options&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter a valid ScriptPath.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To export an object
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Select an object within the objects tree.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Script&lt;/b&gt; then &lt;b&gt;Export&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;The object is exported to the ScriptPath set in Application Configuration.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To export a Service definition to a file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Select a service from within the Objects tree.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Script&lt;/b&gt;, and then click &lt;b&gt;Export&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;The service script is exported to the ScriptPath set in Application Configuration.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To drop an object
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Select the object in the TreeView.&lt;/li&gt;&lt;li&gt;Click either &lt;b&gt;Drop&lt;/b&gt; or &lt;b&gt;Edit&lt;/b&gt;, &lt;b&gt;Drop {ObjectName}.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To alter an object
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the object in the Objects tree that you want to modify.&lt;/li&gt;&lt;li&gt;Modify the properties of that object.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Alter&lt;/b&gt; to alter the object.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To query data describing an object
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Each object can output data describing the object to a Textbox and/or DataGrid.&lt;/li&gt;&lt;li&gt;Select an object in the TreeView.&lt;/li&gt;&lt;li&gt;Click Query.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To drop services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the ClientService node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;&lt;li&gt;Click the ServerService node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To drop queues
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the ClientQueue node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;&lt;li&gt;Click the ServerQueue node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To drop contracts
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the Shipping contract node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To drop MessageTypes
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the ShippingRequest MessageType node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;&lt;li&gt;Click the ShippingAccept MessageType node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;&lt;li&gt;Click the ShippingComplete MessageType node.&lt;/li&gt;&lt;li&gt;Drop the object.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To drop a Target Instance Endpoint
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click a Target Instance Endpoint node.&lt;/li&gt;&lt;li&gt;Drop the object. &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 00:16:07 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_ServiceBrokerConfiguration 20080611121607A</guid></item><item><title>Updated Wiki: SS2005!Readme_ServiceBrokerConfiguration</title><link>http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=SS2005!Readme_ServiceBrokerConfiguration&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ServiceBrokerConfiguration
&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 sample shows how to create Service Broker objects by using SQL Server Management Objects (SMO). The sample is implemented because several Windows User Controls and classes necessary to create Service Broker objects. &lt;br /&gt;The sample is targeted at a Microsoft .NET Framework developer who wants to learn how to use Service Broker SMO and learn how to create Windows User Controls to manage SQL Server 2005 objects. The core scenario is a Microsoft .NET Framework developer who is creating a custom Service Broker management application. &lt;br /&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. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Requirements
&lt;/h3&gt;This 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. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; SQL Server 2005 Database Engine.  &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&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\Programmability\SMO\ ServiceBrokerConfiguration&lt;br /&gt;The C# solution for the code sample is located in the CS directory.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&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;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 .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --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;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&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\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;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&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;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Build the Visual Studio Solution
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;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;Locate the root folder of the sample. Type the following command for the default location:&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.codeplex.com/MSFTEngProdSamples/Wiki/View.aspx?title=C&amp;amp;referringTitle=SS2005%21Readme_ServiceBrokerConfiguration"&gt;C&lt;/a&gt; &lt;span class="codeInline"&gt;cd \Program Files\Microsoft SQL Server\90\&lt;/span&gt;  &lt;span class="codeInline"&gt;\Samples\Engine\Programmability\SMO\ServiceBrokerConfiguration\CS\&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Type the following to build the Visual Studio solution:  &lt;/li&gt;&lt;li&gt; &lt;span class="codeInline"&gt;msbuild &lt;/span&gt;   Or, if you are using Visual Studio 2005, do the following:&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Open the \CS\ConfigurationComponent.sln solution file.   &lt;/li&gt;&lt;li&gt; Press F6 to build the solution.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Set up SQL Server sample database and sample XML schemas
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Locate the \CS\Script folder.&lt;/li&gt;&lt;li&gt;Open and run setup.sql from within SQL Server Management Studio.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Set up SQL Server master keys (optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;If you are setting up Remote Service Binding:&lt;/li&gt;&lt;li&gt;Locate the \CS\Script folder.&lt;/li&gt;&lt;li&gt;Open masterkey.sql from within SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Enter a password for the master database key in the CREATE MASTER KEY ENCRYPTION BY PASSWORD = statement.&lt;/li&gt;&lt;li&gt;Enter a password for the ssb_ConfigurationSample database key in the CREATE MASTER KEY ENCRYPTION BY PASSWORD = statement.&lt;/li&gt;&lt;li&gt;Run masterkey.sql.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;The default location for the C# version is C:\Program Files\Microsoft SQL Server\90\Samples\SMO\ServiceBrokerConfiguration\CS\SampleApplication\bin\Debug\SampleApplication.exe.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To connect to a local SQL Server instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Enter a server name in the Server Name field, or accept the default (local) server name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Connect&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To configure the sample for a new database.
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Options&lt;/b&gt; on the &lt;b&gt;Objects&lt;/b&gt; tab.&lt;/li&gt;&lt;li&gt;Enter a ScriptPath, or accept the default path. The ScriptPath is used to export a script to a file.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt;. The &lt;b&gt;Create&lt;/b&gt; button configures the sample, including setting the BaseUrn.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create MessageTypes
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;MessageType&lt;/b&gt;.**&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingRequest&lt;/b&gt; for the MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Message Type&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingAccept&lt;/b&gt; for the MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Message Type&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ShippingComplete&lt;/b&gt; for MessageType name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new MessageType.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create a contract
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Contract&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;MessageTypeMappings&lt;/b&gt; drop-down menu.&lt;/li&gt;&lt;li&gt;Select all MessageTypes created above.&lt;/li&gt;&lt;li&gt;Select &lt;b&gt;Target&lt;/b&gt; for ShippingAccept and ShippingComplete MessageSource.&lt;/li&gt;&lt;li&gt;Close the &lt;b&gt;MessageTypeMappings&lt;/b&gt; drop-down menu.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;Shipping&lt;/b&gt; for the contract name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create a new contact.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To create queues
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Queue&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;ClientQueue&lt;/b&gt; for the queue name.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Create&lt;/b&gt; to create the new queue, click &lt;b&gt;New&lt;/b&gt;, and then click &lt;b&gt;Queue&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;