<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MSFTXmlProdSamples Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=Home</link><description>MSFTXmlProdSamples Wiki Rss Description</description><item><title>New Comment on "SS2008!Readme_XmlSurvey"</title><link>http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2008!Readme_XmlSurvey&amp;ANCHOR#C14853</link><description>i am trying to build this solution but it&amp;#39;s not possible because when I run the &amp;#34;InstallCS.sql&amp;#34; script it generates an error&amp;#58;&amp;#10;Msg 7878, Level 16, State 1, Line 2&amp;#10;This &amp;#34;CREATE ENDPOINT&amp;#34; statement is not supported on this edition of SQL Server.&amp;#10;Msg 15063, Level 16, State 1, Line 1&amp;#10;The login already has an account under a different user name.&amp;#10;Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.&amp;#10;&amp;#10;&amp;#10;Can someone help&amp;#63;&amp;#63; I don&amp;#39;t understand why they make samples for sql server 2008 when the script commands are deprecated.</description><author>p_maroun</author><pubDate>Wed, 10 Feb 2010 23:25:50 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2008!Readme_XmlSurvey" 20100210112550P</guid></item><item><title>Updated Wiki: Home</title><link>http://msftxmlprodsamples.codeplex.com/wikipage?version=26</link><description>&lt;div class="wikidoc"&gt;&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server XML Product Samples&lt;br /&gt;&lt;br /&gt;This project contains XML samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing XML samples, please let us know by posting in the developers' forum.&lt;br /&gt;&lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTXmlProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt;&lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; XmlManuInstructions &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2005%21Readme_XmlManuInstructions&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_XmlManuInstructions&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; XmlOnlineCatalog &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2005%21Readme_XmlOnlineCatalog&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_XmlOnlineCatalog&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; XmlSurvey &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2005%21Readme_XmlSurvey&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftxmlprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_XmlSurvey&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 09 Dec 2009 00:02:20 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20091209120220A</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlOnlineCatalog</title><link>http://msftxmlprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme_XmlOnlineCatalog&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlOnlineCatalog Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XMLOnlineCatalog sample application displays information about particular products. This sample retrieves information from the following columns in the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; CatalogDescription  column of &lt;b&gt;xml&lt;/b&gt; type in the  Production.ProductModel  table  &lt;/li&gt;&lt;li&gt; LargePhoto  column in the  Production.ProductPhoto  table  The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlOnlineCatalog&lt;/li&gt;
&lt;/ul&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;
Scenario
&lt;/h3&gt;A developer wants to retrieve XML-based descriptions of products from a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlOnlineCatalog sample uses the following features of SQL Server:&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express. You can obtain SQL Server Express free of charge from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;SQL Server Express Download site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.   &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the scripts\install.sql script, or run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetProductDescription stored procedure  &lt;/li&gt;&lt;li&gt; sql_ProductCatalog HTTP Endpoint  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlOnlineCatalog folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click the &lt;b&gt;Share this folder&lt;/b&gt; option, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Compile the application by using the provided Microsoft Visual Studio solution, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\xmlonlinecatalog.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the CS\XmlOnlineCatalog\bin\debug\XmlOnlineCatalog.exe application.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;19&lt;/b&gt; for the &lt;b&gt;ProductModelID&lt;/b&gt; value and click &lt;b&gt;Show Description&lt;/b&gt;. For information about the format of the SOAP request, click &lt;b&gt;Show Request&lt;/b&gt;. For information about the format of the SOAP response from SQL Server, click &lt;b&gt;Show Response&lt;/b&gt;. For information about the XSLT file that rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the  ProductModel  table to find other &lt;b&gt;ProductModelID&lt;/b&gt; values for which the catalog description XML is stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using SQL Server Management Studio and run the contents of the file. Or, run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 09:36:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlOnlineCatalog 20090319093657A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=Home&amp;version=25</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server XML Product Samples&lt;br /&gt; &lt;br /&gt;This project contains XML samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing XML samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTXmlProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlManuInstructions &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlOnlineCatalog &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlSurvey &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;
&lt;/div&gt;</description><author>ReedMe</author><pubDate>Thu, 29 Jan 2009 23:09:49 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20090129110949P</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlSurvey</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlSurvey&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlSurvey Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XmlSurvey sample application collects information for a store survey and updates the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database with the results. Stores in the database represent resellers. The survey is stored as XML in the  Demographics  column of the  Sales.Store  table.&lt;br /&gt;To keep the application simple, the record with a Customer ID of 1 is updated to contain the specified XML each time a survey is saved.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  CustomerID  is the primary key in the  Sales.Store  table and a foreign key in the  Sales.Customer  table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlSurvey.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to create an application that updates store demographics information by sending an XML document to a Web service that is hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlSurvey sample uses the following features of SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&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;Before running this sample, make sure SQL Server is installed, including the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that is available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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 sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\InstallCS.sql script to create the following &lt;/li&gt;&lt;li&gt; SaveStoreSurvey stored procedure  &lt;/li&gt;&lt;li&gt; sql_StoreSurvey HTTP Endpoint  &lt;/li&gt;&lt;li&gt;Build the sample by using the solution provided and Visual Studio, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: *  msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\XmlSurvey.sln *&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS\XmlSurvey\bin\debug\XmlSurvey.exe.&lt;/li&gt;&lt;li&gt;Fill in the survey.&lt;/li&gt;&lt;li&gt;Save the survey by clicking &lt;b&gt;Save&lt;/b&gt; on the &lt;b&gt;File&lt;/b&gt; menu.&lt;/li&gt;&lt;li&gt;Verify that the  Sales.Store  table has been updated by run a query similar to the following, and then selecting the data in the  Demographics  column in the results pane: &lt;span class="codeInline"&gt;SELECT * FROM Sales.Store WHERE CustomerID = 1&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using Management Studio and execute the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:58:25 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlSurvey 20081106115825P</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlSurvey</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlSurvey&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlSurvey
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XmlSurvey sample application collects information for a store survey and updates the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database with the results. Stores in the database represent resellers. The survey is stored as XML in the &lt;b&gt;Demographics&lt;/b&gt; column of the &lt;b&gt;Sales.Store&lt;/b&gt; table.&lt;br /&gt;To keep the application simple, the record with a Customer ID of 1 is updated to contain the specified XML each time a survey is saved.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt;CustomerID&lt;/b&gt; is the primary key in the &lt;b&gt;Sales.Store&lt;/b&gt; table and a foreign key in the &lt;b&gt;Sales.Customer&lt;/b&gt; table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This sample is not supported on Windows 2000 and earlier operating systems.&lt;br /&gt;The default installation directory is &lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\XML\XmlSurvey.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to create an application that updates store demographics information by sending an XML document to a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlSurvey sample uses the following features of SQL Server 2005.&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure SQL Server 2005 is installed, including the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\InstallCS.sql script to create the following :&lt;/li&gt;&lt;li&gt; SaveStoreSurvey stored procedure  &lt;/li&gt;&lt;li&gt; sql_StoreSurvey HTTP Endpoint  &lt;/li&gt;&lt;li&gt;Build the sample by using the solution provided and Visual Studio, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\XmlSurvey.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS\XmlSurvey\bin\debug\XmlSurvey.exe.&lt;/li&gt;&lt;li&gt;Fill in the survey.&lt;/li&gt;&lt;li&gt;Save the survey by clicking &lt;b&gt;Save&lt;/b&gt; on the &lt;b&gt;File&lt;/b&gt; menu.&lt;/li&gt;&lt;li&gt;Verify that the &lt;b&gt;Sales.Store&lt;/b&gt; table has been updated by run a query similar to the following, and then selecting the data in the &lt;b&gt;Demographics&lt;/b&gt; column in the results pane: &lt;span class="codeInline"&gt;SELECT * FROM Sales.Store WHERE CustomerID = 1&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using Management Studio and execute the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
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; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:58:09 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlSurvey 20081106115809P</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlOnlineCatalog</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlOnlineCatalog&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlOnlineCatalog Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XMLOnlineCatalog sample application displays information about particular products. This sample retrieves information from the following columns in the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; CatalogDescription  column of &lt;b&gt;xml&lt;/b&gt; type in the  Production.ProductModel  table  &lt;/li&gt;&lt;li&gt; LargePhoto  column in the  Production.ProductPhoto  table  The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlOnlineCatalog&lt;/li&gt;
&lt;/ul&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;
Scenario
&lt;/h3&gt;A developer wants to retrieve XML-based descriptions of products from a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlOnlineCatalog sample uses the following features of SQL Server:&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express. You can obtain SQL Server Express free of charge from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;SQL Server Express Download site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.   &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the scripts\install.sql script, or run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetProductDescription stored procedure  &lt;/li&gt;&lt;li&gt; sql_ProductCatalog HTTP Endpoint  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlOnlineCatalog folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click the &lt;b&gt;Share this folder&lt;/b&gt; option, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Compile the application by using the provided Microsoft Visual Studio solution, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\xmlonlinecatalog.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the CS\XmlOnlineCatalog\bin\debug\XmlOnlineCatalog.exe application.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;19&lt;/b&gt; for the &lt;b&gt;ProductModelID&lt;/b&gt; value and click &lt;b&gt;Show Description&lt;/b&gt;. For information about the format of the SOAP request, click &lt;b&gt;Show Request&lt;/b&gt;. For information about the format of the SOAP response from SQL Server, click &lt;b&gt;Show Response&lt;/b&gt;. For information about the XSLT file that rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the  ProductModel  table to find other &lt;b&gt;ProductModelID&lt;/b&gt; values for which the catalog description XML is stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using SQL Server Management Studio and run the contents of the file. Or, run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:57:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlOnlineCatalog 20081106115753P</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlOnlineCatalog</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlOnlineCatalog&amp;version=15</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlOnlineCatalog
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XMLOnlineCatalog sample application displays information about particular products. This sample retrieves information from the following columns in the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;CatalogDescription&lt;/b&gt; column of xml type in the &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;LargePhoto&lt;/b&gt; column in the &lt;b&gt;Production.ProductPhoto&lt;/b&gt; table  This sample is not supported on Windows 2000 and earlier operating systems.&lt;/li&gt;
&lt;/ul&gt;The default installation directory is &lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\XML\XmlOnlineCatalog&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;
Scenario
&lt;/h3&gt;A developer wants to retrieve XML-based descriptions of products from a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlOnlineCatalog sample uses the following features of SQL Server 2005:&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server 2005 or SQL Server 2005 Express Edition. You can obtain SQL Server Express free of charge from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;SQL Server Express Download site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the scripts\install.sql script, or run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetProductDescription stored procedure  &lt;/li&gt;&lt;li&gt; sql_ProductCatalog HTTP Endpoint  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlOnlineCatalog folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click the &lt;b&gt;Share this folder&lt;/b&gt; option, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Compile the application by using the provided Microsoft Visual Studio solution, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\ xmlonlinecatalog.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the CS\XmlOnlineCatalog\bin\debug\XmlOnlineCatalog.exe application.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;19&lt;/b&gt; for the &lt;b&gt;ProductModelID&lt;/b&gt; value and click &lt;b&gt;Show Description&lt;/b&gt;. For information about the format of the SOAP request, click &lt;b&gt;Show Request&lt;/b&gt;. For information about the format of the SOAP response from SQL Server 2005, click &lt;b&gt;Show Response&lt;/b&gt;. For information about the XSLT file that rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the &lt;b&gt;ProductModel&lt;/b&gt; table to find other &lt;b&gt;ProductModelID&lt;/b&gt; values for which the catalog description XML is stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using SQL Server Management Studio and run the contents of the file. Or, run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt; &lt;br /&gt;&lt;h3&gt;
Change History
&lt;/h3&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Release &lt;/th&gt;&lt;th&gt;  History  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 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; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:57:35 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlOnlineCatalog 20081106115735P</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlManuInstructions</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlManuInstructions&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlManuInstructions Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XMLManuInstructions sample application displays online directions for building products. The data for this application is retrieved from the following columns in the Microsoft SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Instructions&lt;/b&gt; column of XML type in &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;Diagram&lt;/b&gt; column of XML type in the &lt;b&gt;Production.Illustration&lt;/b&gt; table  Default Location: &lt;/li&gt;
&lt;/ul&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlManuInstructions.&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;
Scenario
&lt;/h3&gt;A developer wants to create an application which accesses XML-based manufacturing directions from a web service and displays them.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C# and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlManuInstructions sample uses the following features of SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server or Microsoft SQL Server Express (SQL Server Express). You can obtain SQL Server Express free of charge from the SQL Server Express Documentation and Samples &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database that is available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples that are available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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;To build the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Make sure the  AdventureWorks  sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\install.sql script. Or, run the following command in a command prompt window: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetManuInstructions stored procedure.  &lt;/li&gt;&lt;li&gt; sql_AdvWorksEndPointManuInstrucions HTTP Endpoint.  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlManuInstructions folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, select &lt;b&gt;Share this folder&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample, which enables the application to work correctly.&lt;/li&gt;&lt;li&gt;Install the SVG viewer from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=42964" class="externalLink"&gt;Adobe Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Be sure to click &lt;b&gt;Save As&lt;/b&gt; instead of &lt;b&gt;Open&lt;/b&gt;.  *Note:   To install the viewer, you must have administrator privileges on your computer. Follow this procedure to install the viewer in the administrator context without having to log out of your current session. *&lt;/li&gt;&lt;li&gt; From the &lt;b&gt;Run&lt;/b&gt; menu, type the following command:  &lt;span class="codeInline"&gt;runas /user:Administrator cmd&lt;/span&gt; .  &lt;/li&gt;&lt;li&gt; At the prompt, enter the Administrator password.   &lt;/li&gt;&lt;li&gt; In the command shell, type the path to the svgview.exe file and press ENTER, such as C:\downloads\svgview.exe.    &lt;b&gt;Note:   Even if your user account has administrator privileges, you must run the installer on the account named “Administrator” or it does not work.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Build the application using Microsoft Visual Studio 2005, or type the following in a .NET Framework or Microsoft Visual Studio 2005 command prompt window: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\xmlmanuinstructions.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS/XmlManuInstructions/bin/debug/XmlManuInstructions.exe.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;7&lt;/b&gt; for Product Model ID value. Click *Show Instructions *to see the fully rendered manufacturing instructions for the specified model. If you are curious about the format of the SOAP request, Click &lt;b&gt;Show Request&lt;/b&gt;. If you are curious about the format of the SOAP response from SQL Server click &lt;b&gt;Show Response&lt;/b&gt;. If you are curious about the XSLT file which rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the ProductModel table to find ProductModelID values for which products have XML manufacturing instructions stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\cleanup.sql file in Management Studio and run the contents of the file. Or, run the following command in a command prompt window:  &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:57:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlManuInstructions 20081106115719P</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlManuInstructions</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlManuInstructions&amp;version=15</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlManuInstructions
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XMLManuInstructions sample application displays online directions for building products. The data for this application is retrieved from the following columns in the Microsoft SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Instructions&lt;/b&gt; column of XML type in &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;Diagram&lt;/b&gt; column of XML type in the &lt;b&gt;Production.Illustration&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;  This sample is not supported on Windows 2000 and earlier operating systems.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;  Default Location: &lt;/li&gt;
&lt;/ul&gt;&lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\&lt;br /&gt;Engine\XML\XmlManuInstructions.&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;
Scenario
&lt;/h3&gt;A developer wants to create an application which accesses XML-based manufacturing directions from a web service and displays them.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C# and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlManuInstructions sample uses the following features of SQL Server 2005.&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server 2005 or Microsoft SQL Server 2005 Express Edition (SQL Server Express). You can obtain SQL Server Express free of charge from the SQL Server 2005 Express Edition Documentation and Samples &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&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;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Make sure the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\install.sql script. Or, run the following command in a command prompt window: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetManuInstructions stored procedure.  &lt;/li&gt;&lt;li&gt; sql_AdvWorksEndPointManuInstrucions HTTP Endpoint.  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlManuInstructions folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, select &lt;b&gt;Share this folder&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample, which enables the application to work correctly.&lt;/li&gt;&lt;li&gt;Install the SVG viewer from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=42964" class="externalLink"&gt;http://www.adobe.co&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Be sure to click &lt;b&gt;Save As&lt;/b&gt; instead of &lt;b&gt;Open&lt;/b&gt;.  *Note:   To install the viewer, you must have administrator privileges on your computer. Follow this procedure to install the viewer in the administrator context without having to log out of your current session. *&lt;/li&gt;&lt;li&gt; From the &lt;b&gt;Run&lt;/b&gt; menu, type the following command:  &lt;span class="codeInline"&gt;runas /user:Administrator cmd&lt;/span&gt; .  &lt;/li&gt;&lt;li&gt; At the prompt, enter the Administrator password.   &lt;/li&gt;&lt;li&gt; In the command shell, type the path to the svgview.exe file and press ENTER, such as C:\downloads\svgview.exe.    &lt;b&gt;Note:   Even if your user account has administrator privileges, you must run the installer on the account named “Administrator” or it does not work.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Build the application using Microsoft Visual Studio 2005, or type the following in a .NET Framework or Microsoft Visual Studio 2005 command prompt window: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\ xmlmanuinstructions.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS/XmlManuInstructions/bin/debug/XmlManuInstructions.exe.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;7&lt;/b&gt; for Product Model ID value. Click *Show Instructions *to see the fully rendered manufacturing instructions for the specified model. If you are curious about the format of the SOAP request, Click &lt;b&gt;Show Request&lt;/b&gt;. If you are curious about the format of the SOAP response from SQL Server 2005 click &lt;b&gt;Show Response&lt;/b&gt;. If you are curious about the XSLT file which rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the ProductModel table to find ProductModelID values for which products have XML manufacturing instructions stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\cleanup.sql file in Management Studio and run the contents of the file. Or, run the following command in a command prompt window:  &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
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; &lt;br /&gt;  &amp;#169; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:57:03 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlManuInstructions 20081106115703P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=Home&amp;version=24</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server XML Product Samples&lt;br /&gt; &lt;br /&gt;This project contains XML samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing XML samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTXmlProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlManuInstructions &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlOnlineCatalog &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlSurvey &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:56:43 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20081106115643P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=Home&amp;version=23</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server XML Product Samples&lt;br /&gt; &lt;br /&gt;This project contains XML samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing XML samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;SQL Server 2008&lt;/b&gt; samples &lt;a href="/MSFTXmlProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;download&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;SQL Server 2005&lt;/b&gt; samples &lt;a href="/MSFTXmlProdSamples/Release/ProjectReleases.aspx?ReleaseId=4047" class="externalLink"&gt;download&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlManuInstructions &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlOnlineCatalog &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlSurvey &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>ReedMe</author><pubDate>Wed, 27 Aug 2008 23:58:01 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080827115801P</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlSurvey</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlSurvey&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlSurvey Sample
&lt;/h2&gt; &lt;br /&gt; 08/06/2008 01:27:32&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XmlSurvey sample application collects information for a store survey and updates the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database with the results. Stores in the database represent resellers. The survey is stored as XML in the  Demographics  column of the  Sales.Store  table.&lt;br /&gt;To keep the application simple, the record with a Customer ID of 1 is updated to contain the specified XML each time a survey is saved.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  CustomerID  is the primary key in the  Sales.Store  table and a foreign key in the  Sales.Customer  table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlSurvey.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to create an application that updates store demographics information by sending an XML document to a Web service that is hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlSurvey sample uses the following features of SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&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;Before running this sample, make sure SQL Server is installed, including the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples. These samples are included with SQL Server. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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 sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\InstallCS.sql script to create the following &lt;/li&gt;&lt;li&gt; SaveStoreSurvey stored procedure  &lt;/li&gt;&lt;li&gt; sql_StoreSurvey HTTP Endpoint  &lt;/li&gt;&lt;li&gt;Build the sample by using the solution provided and Visual Studio, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: *  msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\XmlSurvey.sln *&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS\XmlSurvey\bin\debug\XmlSurvey.exe.&lt;/li&gt;&lt;li&gt;Fill in the survey.&lt;/li&gt;&lt;li&gt;Save the survey by clicking &lt;b&gt;Save&lt;/b&gt; on the &lt;b&gt;File&lt;/b&gt; menu.&lt;/li&gt;&lt;li&gt;Verify that the  Sales.Store  table has been updated by run a query similar to the following, and then selecting the data in the  Demographics  column in the results pane: &lt;span class="codeInline"&gt;SELECT * FROM Sales.Store WHERE CustomerID = 1&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using Management Studio and execute the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:29:05 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlSurvey 20080807082905A</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlSurvey</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlSurvey&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlSurvey
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XmlSurvey sample application collects information for a store survey and updates the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database with the results. Stores in the database represent resellers. The survey is stored as XML in the &lt;b&gt;Demographics&lt;/b&gt; column of the &lt;b&gt;Sales.Store&lt;/b&gt; table.&lt;br /&gt;To keep the application simple, the record with a Customer ID of 1 is updated to contain the specified XML each time a survey is saved.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt;CustomerID&lt;/b&gt; is the primary key in the &lt;b&gt;Sales.Store&lt;/b&gt; table and a foreign key in the &lt;b&gt;Sales.Customer&lt;/b&gt; table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;This sample is not supported on Windows 2000 and earlier operating systems.&lt;br /&gt;The default installation directory is &lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\XML\XmlSurvey.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to create an application that updates store demographics information by sending an XML document to a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlSurvey sample uses the following features of SQL Server 2005.&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure SQL Server 2005 is installed, including the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\InstallCS.sql script to create the following :&lt;/li&gt;&lt;li&gt; SaveStoreSurvey stored procedure  &lt;/li&gt;&lt;li&gt; sql_StoreSurvey HTTP Endpoint  &lt;/li&gt;&lt;li&gt;Build the sample by using the solution provided and Visual Studio, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\XmlSurvey.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS\XmlSurvey\bin\debug\XmlSurvey.exe.&lt;/li&gt;&lt;li&gt;Fill in the survey.&lt;/li&gt;&lt;li&gt;Save the survey by clicking &lt;b&gt;Save&lt;/b&gt; on the &lt;b&gt;File&lt;/b&gt; menu.&lt;/li&gt;&lt;li&gt;Verify that the &lt;b&gt;Sales.Store&lt;/b&gt; table has been updated by run a query similar to the following, and then selecting the data in the &lt;b&gt;Demographics&lt;/b&gt; column in the results pane: &lt;span class="codeInline"&gt;SELECT * FROM Sales.Store WHERE CustomerID = 1&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using Management Studio and execute the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
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; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:28:46 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlSurvey 20080807082846A</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlOnlineCatalog</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlOnlineCatalog&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlOnlineCatalog Sample
&lt;/h2&gt; &lt;br /&gt; 08/06/2008 01:27:32&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XMLOnlineCatalog sample application displays information about particular products. This sample retrieves information from the following columns in the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; CatalogDescription  column of &lt;b&gt;xml&lt;/b&gt; type in the  Production.ProductModel  table  &lt;/li&gt;&lt;li&gt; LargePhoto  column in the  Production.ProductPhoto  table  The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlOnlineCatalog&lt;/li&gt;
&lt;/ul&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;
Scenario
&lt;/h3&gt;A developer wants to retrieve XML-based descriptions of products from a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlOnlineCatalog sample uses the following features of SQL Server:&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server or SQL Server Express. You can obtain SQL Server Express free of charge from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;SQL Server Express Download site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples. These samples are included with SQL Server. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the scripts\install.sql script, or run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetProductDescription stored procedure  &lt;/li&gt;&lt;li&gt; sql_ProductCatalog HTTP Endpoint  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlOnlineCatalog folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click the &lt;b&gt;Share this folder&lt;/b&gt; option, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Compile the application by using the provided Microsoft Visual Studio solution, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\xmlonlinecatalog.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the CS\XmlOnlineCatalog\bin\debug\XmlOnlineCatalog.exe application.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;19&lt;/b&gt; for the &lt;b&gt;ProductModelID&lt;/b&gt; value and click &lt;b&gt;Show Description&lt;/b&gt;. For information about the format of the SOAP request, click &lt;b&gt;Show Request&lt;/b&gt;. For information about the format of the SOAP response from SQL Server, click &lt;b&gt;Show Response&lt;/b&gt;. For information about the XSLT file that rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the  ProductModel  table to find other &lt;b&gt;ProductModelID&lt;/b&gt; values for which the catalog description XML is stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using SQL Server Management Studio and run the contents of the file. Or, run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt; &lt;br /&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:28:29 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlOnlineCatalog 20080807082829A</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlOnlineCatalog</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlOnlineCatalog&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlOnlineCatalog
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XMLOnlineCatalog sample application displays information about particular products. This sample retrieves information from the following columns in the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;CatalogDescription&lt;/b&gt; column of xml type in the &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;LargePhoto&lt;/b&gt; column in the &lt;b&gt;Production.ProductPhoto&lt;/b&gt; table  This sample is not supported on Windows 2000 and earlier operating systems.&lt;/li&gt;
&lt;/ul&gt;The default installation directory is &lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\Engine\XML\XmlOnlineCatalog&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;
Scenario
&lt;/h3&gt;A developer wants to retrieve XML-based descriptions of products from a Web service hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlOnlineCatalog sample uses the following features of SQL Server 2005:&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server 2005 or SQL Server 2005 Express Edition. You can obtain SQL Server Express free of charge from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;SQL Server Express Download site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the scripts\install.sql script, or run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetProductDescription stored procedure  &lt;/li&gt;&lt;li&gt; sql_ProductCatalog HTTP Endpoint  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlOnlineCatalog folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click the &lt;b&gt;Share this folder&lt;/b&gt; option, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Compile the application by using the provided Microsoft Visual Studio solution, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\ xmlonlinecatalog.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the CS\XmlOnlineCatalog\bin\debug\XmlOnlineCatalog.exe application.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;19&lt;/b&gt; for the &lt;b&gt;ProductModelID&lt;/b&gt; value and click &lt;b&gt;Show Description&lt;/b&gt;. For information about the format of the SOAP request, click &lt;b&gt;Show Request&lt;/b&gt;. For information about the format of the SOAP response from SQL Server 2005, click &lt;b&gt;Show Response&lt;/b&gt;. For information about the XSLT file that rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the &lt;b&gt;ProductModel&lt;/b&gt; table to find other &lt;b&gt;ProductModelID&lt;/b&gt; values for which the catalog description XML is stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using SQL Server Management Studio and run the contents of the file. Or, run the following command at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt; &lt;br /&gt;&lt;h3&gt;
Change History
&lt;/h3&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Release &lt;/th&gt;&lt;th&gt;  History  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 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; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:28:11 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlOnlineCatalog 20080807082811A</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlManuInstructions</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlManuInstructions&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlManuInstructions Sample
&lt;/h2&gt; &lt;br /&gt; 08/06/2008 01:27:32&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XMLManuInstructions sample application displays online directions for building products. The data for this application is retrieved from the following columns in the Microsoft SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Instructions&lt;/b&gt; column of XML type in &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;Diagram&lt;/b&gt; column of XML type in the &lt;b&gt;Production.Illustration&lt;/b&gt; table  Default Location: &lt;/li&gt;
&lt;/ul&gt; C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlManuInstructions.&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;
Scenario
&lt;/h3&gt;A developer wants to create an application which accesses XML-based manufacturing directions from a web service and displays them.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C# and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlManuInstructions sample uses the following features of SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server or Microsoft SQL Server Express (SQL Server Express). You can obtain SQL Server Express free of charge from the SQL Server Express Documentation and Samples &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples. These samples are included with SQL Server. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&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;To build the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Make sure the  AdventureWorks  sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\install.sql script. Or, run the following command in a command prompt window: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetManuInstructions stored procedure.  &lt;/li&gt;&lt;li&gt; sql_AdvWorksEndPointManuInstrucions HTTP Endpoint.  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlManuInstructions folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, select &lt;b&gt;Share this folder&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample, which enables the application to work correctly.&lt;/li&gt;&lt;li&gt;Install the SVG viewer from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=42964" class="externalLink"&gt;Adobe Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Be sure to click &lt;b&gt;Save As&lt;/b&gt; instead of &lt;b&gt;Open&lt;/b&gt;.  *Note:   To install the viewer, you must have administrator privileges on your computer. Follow this procedure to install the viewer in the administrator context without having to log out of your current session. *&lt;/li&gt;&lt;li&gt; From the &lt;b&gt;Run&lt;/b&gt; menu, type the following command:  &lt;span class="codeInline"&gt;runas /user:Administrator cmd&lt;/span&gt; .  &lt;/li&gt;&lt;li&gt; At the prompt, enter the Administrator password.   &lt;/li&gt;&lt;li&gt; In the command shell, type the path to the svgview.exe file and press ENTER, such as C:\downloads\svgview.exe.    &lt;b&gt;Note:   Even if your user account has administrator privileges, you must run the installer on the account named “Administrator” or it does not work.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Build the application using Microsoft Visual Studio 2005, or type the following in a .NET Framework or Microsoft Visual Studio 2005 command prompt window: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\xmlmanuinstructions.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS/XmlManuInstructions/bin/debug/XmlManuInstructions.exe.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;7&lt;/b&gt; for Product Model ID value. Click *Show Instructions *to see the fully rendered manufacturing instructions for the specified model. If you are curious about the format of the SOAP request, Click &lt;b&gt;Show Request&lt;/b&gt;. If you are curious about the format of the SOAP response from SQL Server click &lt;b&gt;Show Response&lt;/b&gt;. If you are curious about the XSLT file which rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the ProductModel table to find ProductModelID values for which products have XML manufacturing instructions stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\cleanup.sql file in Management Studio and run the contents of the file. Or, run the following command in a command prompt window:  &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:27:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlManuInstructions 20080807082753A</guid></item><item><title>Updated Wiki: SS2005!Readme_XmlManuInstructions</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005!Readme_XmlManuInstructions&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlManuInstructions
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 5 December 2005 &lt;/b&gt;&lt;br /&gt;The XMLManuInstructions sample application displays online directions for building products. The data for this application is retrieved from the following columns in the Microsoft SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Instructions&lt;/b&gt; column of XML type in &lt;b&gt;Production.ProductModel&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;&lt;b&gt;Diagram&lt;/b&gt; column of XML type in the &lt;b&gt;Production.Illustration&lt;/b&gt; table  &lt;/li&gt;&lt;li&gt;  This sample is not supported on Windows 2000 and earlier operating systems.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;  Default Location: &lt;/li&gt;
&lt;/ul&gt;&lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Samples\&lt;br /&gt;Engine\XML\XmlManuInstructions.&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;
Scenario
&lt;/h3&gt;A developer wants to create an application which accesses XML-based manufacturing directions from a web service and displays them.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, XSLT, Visual C# and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlManuInstructions sample uses the following features of SQL Server 2005.&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server 2005 or Microsoft SQL Server 2005 Express Edition (SQL Server Express). You can obtain SQL Server Express free of charge from the SQL Server 2005 Express Edition Documentation and Samples &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&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;/ul&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 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\90\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;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;To build the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Make sure the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\install.sql script. Or, run the following command in a command prompt window: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\install.sql&lt;/span&gt; This script creates the following:&lt;/li&gt;&lt;li&gt; GetManuInstructions stored procedure.  &lt;/li&gt;&lt;li&gt; sql_AdvWorksEndPointManuInstrucions HTTP Endpoint.  &lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\XmlManuInstructions folder where the sample was installed, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, select &lt;b&gt;Share this folder&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; twice. This creates an IIS virtual folder for the sample, which enables the application to work correctly.&lt;/li&gt;&lt;li&gt;Install the SVG viewer from &lt;a href="http://go.microsoft.com/fwlink/?LinkId=42964" class="externalLink"&gt;http://www.adobe.co&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Be sure to click &lt;b&gt;Save As&lt;/b&gt; instead of &lt;b&gt;Open&lt;/b&gt;.  *Note:   To install the viewer, you must have administrator privileges on your computer. Follow this procedure to install the viewer in the administrator context without having to log out of your current session. *&lt;/li&gt;&lt;li&gt; From the &lt;b&gt;Run&lt;/b&gt; menu, type the following command:  &lt;span class="codeInline"&gt;runas /user:Administrator cmd&lt;/span&gt; .  &lt;/li&gt;&lt;li&gt; At the prompt, enter the Administrator password.   &lt;/li&gt;&lt;li&gt; In the command shell, type the path to the svgview.exe file and press ENTER, such as C:\downloads\svgview.exe.    &lt;b&gt;Note:   Even if your user account has administrator privileges, you must run the installer on the account named “Administrator” or it does not work.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Build the application using Microsoft Visual Studio 2005, or type the following in a .NET Framework or Microsoft Visual Studio 2005 command prompt window: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\ xmlmanuinstructions.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample you need to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS/XmlManuInstructions/bin/debug/XmlManuInstructions.exe.&lt;/li&gt;&lt;li&gt;Enter &lt;b&gt;7&lt;/b&gt; for Product Model ID value. Click *Show Instructions *to see the fully rendered manufacturing instructions for the specified model. If you are curious about the format of the SOAP request, Click &lt;b&gt;Show Request&lt;/b&gt;. If you are curious about the format of the SOAP response from SQL Server 2005 click &lt;b&gt;Show Response&lt;/b&gt;. If you are curious about the XSLT file which rendered the instructions, click &lt;b&gt;Show XSL&lt;/b&gt;. You can search the ProductModel table to find ProductModelID values for which products have XML manufacturing instructions stored.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, to do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\cleanup.sql file in Management Studio and run the contents of the file. Or, run the following command in a command prompt window:  &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\cleanup.sql&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
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; &lt;br /&gt;  &amp;#169; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:27:34 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_XmlManuInstructions 20080807082734A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=Home&amp;version=22</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server XML Product Samples&lt;br /&gt; &lt;br /&gt;This project contains XML samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing XML samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTXmlProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlManuInstructions &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlManuInstructions&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlOnlineCatalog &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlOnlineCatalog&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; XmlSurvey &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2005%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008%21Readme_XmlSurvey&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 07 Aug 2008 08:27:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080807082714A</guid></item><item><title>Updated Wiki: SS2008!Readme_XmlSurvey</title><link>http://www.codeplex.com/MSFTXmlProdSamples/Wiki/View.aspx?title=SS2008!Readme_XmlSurvey&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_XmlSurvey Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 1:32:27 AM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The XmlSurvey sample application collects information for a store survey and updates the SQL Server &lt;b&gt;AdventureWorks&lt;/b&gt; database with the results. Stores in the database represent resellers. The survey is stored as XML in the  Demographics  column of the  Sales.Store  table.&lt;br /&gt;To keep the application simple, the record with a Customer ID of 1 is updated to contain the specified XML each time a survey is saved.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  CustomerID  is the primary key in the  Sales.Store  table and a foreign key in the  Sales.Customer  table. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\XML\XmlSurvey.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to create an application that updates store demographics information by sending an XML document to a Web service that is hosted by SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The XmlSurvey sample uses the following features of SQL Server.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt; XML, SQL Server-hosted Web services &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&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;Before running this sample, make sure SQL Server is installed, including the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server, and is also available at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server Database Engine samples. These samples are included with SQL Server. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework Documentation&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;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 sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Ensure that the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database is installed.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, load and run the Scripts\InstallCS.sql script to create the following &lt;/li&gt;&lt;li&gt; SaveStoreSurvey stored procedure  &lt;/li&gt;&lt;li&gt; sql_StoreSurvey HTTP Endpoint  &lt;/li&gt;&lt;li&gt;Build the sample by using the solution provided and Visual Studio, or run the following at a .NET Framework or Microsoft Visual Studio 2005 command prompt: *  msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\XmlSurvey.sln *&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;To run the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Run the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run CS\XmlSurvey\bin\debug\XmlSurvey.exe.&lt;/li&gt;&lt;li&gt;Fill in the survey.&lt;/li&gt;&lt;li&gt;Save the survey by clicking &lt;b&gt;Save&lt;/b&gt; on the &lt;b&gt;File&lt;/b&gt; menu.&lt;/li&gt;&lt;li&gt;Verify that the  Sales.Store  table has been updated by run a query similar to the following, and then selecting the data in the  Demographics  column in the results pane: &lt;span class="codeInline"&gt;SELECT * FROM Sales.Store WHERE CustomerID = 1&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;To remove the sample, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Scripts\Cleanup.sql file by using Management Studio and execute the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&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;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;XML Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:48:46 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_XmlSurvey 20080611124846A</guid></item></channel></rss>