<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Microsoft SQL Server Product Samples: End to End</title><link>http://www.codeplex.com/MSFTEEProdSamples/Project/ProjectRss.aspx</link><description>This project contains End to End samples released with Microsoft SQL Server product.</description><item><title>Source code checked in, #11622</title><link>http://www.codeplex.com/MSFTEEProdSamples/SourceControl/ListDownloadableCommits.aspx</link><description>Adding &amp;#39;Katmai&amp;#58;June 2008 RC0&amp;#39;</description><author>ReedMe</author><pubDate>Wed, 11 Jun 2008 05:42:45 GMT</pubDate><guid isPermaLink="false">Source code checked in, #11622 20080611054245A</guid></item><item><title>Updated Wiki: SS2008!Service Broker Ordering Service Sample</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Service Broker Ordering Service Sample&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Service Broker Ordering Service 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 Adventure Works Storefront sample accepts an online order and returns a predefined ship date in the order status screen. This sample adds backend order processing capabilities to Adventure Works Storefront.&lt;br /&gt;This sample illustrates the fundamental concepts of Service Broker and allows you to view the Transact-SQL scripts used to run the sample, and the results of executing that script in the Service Broker tables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample requires the Adventure Works Storefront sample. For more information about installing the Storefront sample, see &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Storefront&amp;amp;referringTitle=SS2008%21Service%20Broker%20Ordering%20Service%20Sample"&gt;Readme_Storefront&lt;/a&gt;. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement a backend order processing system for an e-commerce Web site.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, and Visual C#.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; Adventure Works Storefront sample  &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;The C# source code is built with the Storefront sample. To create the SQL Server portion of the sample, follow the steps below.&lt;br /&gt;All Service Broker applications are composed of a collection of SQL Server objects that provide the service functionality. In this step, you will create the Service Broker environment, consisting of the XML schema collections, message types, contracts, queues, and services required to operate it.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Set up the Service Broker environment
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the Transact-SQL script to set up Service Broker. You can run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;, or you can run the individual scripts.&lt;/li&gt;&lt;li&gt; Run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront.  &lt;/li&gt;&lt;li&gt; Alternatively, you can run the individual scripts in the following order:  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\Setup.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupOrderingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupPurchasingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupManufacturingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupShippingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;Configure the Storefront.&lt;/li&gt;&lt;li&gt; Edit the &lt;b&gt;web.config&lt;/b&gt; file, located in the directory C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\CS\StoreCSVS. Find the &lt;b&gt;ExtendedOrderProcessing&lt;/b&gt; attribute, and change the value to &lt;b&gt;true&lt;/b&gt;. After making the change, this element should look like the element below:   &lt;span class="codeInline"&gt;&amp;lt;add key=&amp;quot;ExtendedOrderProcessing&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;In this exercise, you will go to the Adventure Works Web site and order an in-stock item. Because the item is in stock, the Ordering Service sends a Shipping Request message to the Shipping Service, and the Shipping Service responds back to the Ordering Service with a Shipping Accept message. Follow the steps in this exercise to see this process in SQL Server Management Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Order an in-stock item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left pane, expand &lt;b&gt;Accessories&lt;/b&gt;, and then expand &lt;b&gt;Helmets&lt;/b&gt;. Select &lt;b&gt;Sports-100 Helmet, Red&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the &lt;b&gt;Shopping Cart&lt;/b&gt; page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock buy item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left menu, expand &lt;b&gt;Clothing&lt;/b&gt;. &amp;nbsp;Click the submenu item &lt;b&gt;Tights&lt;/b&gt;. Pick &lt;b&gt;Women’s Tights, M&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. In the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. In the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock make item ready for manufacturing
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;On the left menu, expand &lt;b&gt;Components&lt;/b&gt;. &amp;nbsp;Click &lt;b&gt;Mountain Frames&lt;/b&gt;, select &lt;b&gt;HL Mountain Frame – Black, 38&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run &lt;b&gt;uninstallorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:44:46 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Service Broker Ordering Service Sample 20080611124446A</guid></item><item><title>Updated Wiki: SS2005!Service Broker Ordering Service Sample</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005!Service Broker Ordering Service Sample&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Service Broker Ordering Service Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The Adventure Works Storefront sample accepts an online order and returns a predefined ship date in the order status screen. This sample adds backend order processing capabilities to Adventure Works Storefront.&lt;br /&gt;This sample illustrates the fundamental concepts of Service Broker. It lets you view the Transact-SQL scripts that are used to run the sample, and the results of executing that script in the Service Broker tables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample requires the Adventure Works Storefront sample. For more information about installing the Storefront sample, see &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Storefront&amp;amp;referringTitle=SS2005%21Service%20Broker%20Ordering%20Service%20Sample"&gt;Readme_Storefront&lt;/a&gt;. By default, the Adventure Works Storefront sample is installed at C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &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 implement a backend order processing system for an e-commerce Web site.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, and Visual C#.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server 2005, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; Adventure Works Storefront sample  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The C# source code is built with the Storefront sample. To create the SQL Server portion of the sample, follow the steps below.&lt;br /&gt;All Service Broker applications are composed of a collection of SQL Server objects that provide the service functionality. In this step, you will create the Service Broker environment, consisting of the XML schema collections, message types, contracts, queues, and services required to operate it.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Set up the Service Broker environment
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the Transact-SQL script to set up Service Broker. You can run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;, or you can run the individual scripts.&lt;/li&gt;&lt;li&gt; Run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront.  &lt;/li&gt;&lt;li&gt; Alternatively, you can run the individual scripts in the following order:  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\Setup.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupOrderingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupPurchasingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupManufacturingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupShippingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;Configure the Storefront.&lt;/li&gt;&lt;li&gt; Edit the &lt;b&gt;web.config&lt;/b&gt; file, located in the directory C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\CS\StoreCSVS. Find the &lt;b&gt;ExtendedOrderProcessing&lt;/b&gt; attribute, and change the value to &lt;b&gt;true&lt;/b&gt;. After making the change, this element should look like the element below:   &lt;span class="codeInline"&gt;&amp;lt;add key=&amp;quot;ExtendedOrderProcessing&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/span&gt;     &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;In this exercise, you will visit the Adventure Works Web site and order an in-stock item. Because the item is in stock, the Ordering Service sends a Shipping Request message to the Shipping Service. The Shipping Service then responds to the Ordering Service with a Shipping Accept message. Follow the steps in this exercise to see this process in SQL Server Management Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Order an in-stock item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left pane, expand &lt;b&gt;Accessories&lt;/b&gt;, and then expand &lt;b&gt;Helmets&lt;/b&gt;. Select &lt;b&gt;Sports-100 Helmet, Red&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the &lt;b&gt;Shopping Cart&lt;/b&gt; page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock buy item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left menu, expand &lt;b&gt;Clothing&lt;/b&gt;. &amp;nbsp;Click the submenu item &lt;b&gt;Tights&lt;/b&gt;. Pick &lt;b&gt;Women’s Tights, M&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. In the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. In the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock make item ready for manufacturing
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;On the left menu, expand &lt;b&gt;Components&lt;/b&gt;. &amp;nbsp;Click &lt;b&gt;Mountain Frames&lt;/b&gt;, select &lt;b&gt;HL Mountain Frame – Black, 38&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run &lt;b&gt;uninstallorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:44:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Service Broker Ordering Service Sample 20080611124419A</guid></item><item><title>Updated Wiki: SS2008!Readme_Storefront</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Readme_Storefront&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Storefront
&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 Storefront sample for the Adventure Works Cycles sample database in SQL Server demonstrates how to build a simple Internet retail application by using SQL Server, ADO.NET, and ASP.NET. This document describes how to install the SQL Server version of the sample application.&lt;br /&gt;This sample works with the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database, which is included with SQL Server. Updates for both the database and this sample are available to download at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.&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;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement an e-commerce Web site. The Web site should offer additional product recommendations based on the contents of the shopping cart (product up sell).&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 Storefront 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; Demographics&lt;/td&gt;&lt;td&gt; XML, XSD &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Globalization&lt;/td&gt;&lt;td&gt; Common language runtime user-defined function, common language runtime user-defined type &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt;  ADO.NET, Transact-SQL, &lt;b&gt;AdventureWorks&lt;/b&gt; sample database &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 that 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;&lt;b&gt;AdventureWorks&lt;/b&gt; SP1 sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; CLR sample. By default, this is placed in C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Programmability\CLR\AdventureWorks when you install Database Engine Samples. See the readme file for this sample for additional installation instructions.  &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, do the following:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Step 1: Install the sample and configure IIS
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Alter the permissions of the folder where this sample is installed so it may be accessed by the user under which IIS runs.  See the default installation directory above for the location of this folder.  By default IIS runs under &lt;i&gt;machinename&lt;/i&gt;\ASPNET for IIS 5.1 (Windows XP) and Network Service for IIS 6.0 (Windows 2003).&lt;/li&gt;&lt;li&gt;If you intend to compile by using MSBuild instead of Visual Studio, create the StoreCSVS v-root if it does not already exist by performing the following steps:&lt;/li&gt;
&lt;/ol&gt;# &lt;br /&gt;                Right-click the StoreCSVS folder in C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\CS\ and select &lt;b&gt;Properties&lt;/b&gt;.   &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; In the StoreCSVS Properties page, go to the &lt;b&gt;Web Sharing&lt;/b&gt; tab and select &lt;b&gt;Share this folder&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Edit Alias page, make sure &lt;b&gt;Read&lt;/b&gt; is selected as the default Access permission and &lt;b&gt;Script&lt;/b&gt; is selected as the default Application permission, and then click &lt;b&gt;OK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you have not already enabled the Default.aspx page on this server, you can do so by performing the following steps:&lt;/li&gt;&lt;li&gt; Open Internet Information Services (IIS) Manager and expand the local computer in the explorer in the left pane.  &lt;/li&gt;&lt;li&gt; Right-click StoreCSVS and click &lt;b&gt;Properties&lt;/b&gt;. StoreCSVS should be listed under &lt;b&gt;Default Web Site&lt;/b&gt; in &lt;b&gt;Web Sites&lt;/b&gt;. If you have left IIS Manager open from a previous step, you might need to click &lt;b&gt;Action&lt;/b&gt; and then click &lt;b&gt;Refresh&lt;/b&gt; to see the newly added v-root.  &lt;/li&gt;&lt;li&gt; Ensure that the ASP.NET version selected for the StoreCSVS virtual directory is 2.0.&lt;i&gt;xxxxx where xxxxx is the build version&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; On the StoreCSVS Properties page, click the &lt;b&gt;Documents&lt;/b&gt; tab, and then select &lt;b&gt;Enable default content page&lt;/b&gt;. If Default.aspx is not listed as a content page, click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Add Content page, type Default.aspx, click &lt;b&gt;OK&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; again.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio &lt;/li&gt;&lt;li&gt; Open the CS\StoreCSVS.sln solution file.  &lt;/li&gt;&lt;li&gt; On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Rebuild Solution&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you do not have Visual Studio, you can use MSBuild, which is distributed with the .NET Framework SDK 2.0&lt;/li&gt;&lt;li&gt; Open a .NET Framework SDK 2.0 command prompt window.  &lt;/li&gt;&lt;li&gt; Change the directory to the Storefront sample directory.  &lt;/li&gt;&lt;li&gt; Run this command:    &lt;span class="codeInline"&gt;msbuild /property:configuration=debug CS\StoreCSVS.sln&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 3: Configure SQL Server
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Install the Storefront sample stored procedures by running the AWStore.sql script file. You can do this either by using Management Studio or by using the sqlcmd utility. The script file is located in the Scripts directory.&lt;/li&gt;&lt;li&gt; To run the script file by using Management Studio, on the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Open&lt;/b&gt;, locate the Scripts folder, select the AWStore.sql file, and then run the contents of the file.  &lt;/li&gt;&lt;li&gt; To run the script file by using the sqlcmd utility, at the command prompt, change the directory to the folder where the AWStore.sql file is located, and then run the following command: &lt;b&gt;sqlcmd -E -I -i awstore.sql&lt;/b&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 4: Enable the OLAP-based product upsell scenario
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Analysis Services project in &amp;lt;&lt;i&gt;drive&lt;/i&gt;&amp;gt;:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks&amp;nbsp;Analysis&amp;nbsp;Services&amp;nbsp;Project\Adventure&amp;nbsp;Works.sln.&lt;/li&gt;&lt;li&gt;Deploy the project.&lt;/li&gt;&lt;li&gt;In Management Studio, click &lt;b&gt;Connect&lt;/b&gt; in Object Explorer, and then click &lt;b&gt;Analysis Server&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Connect&lt;/b&gt; in the dialog box that appears.&lt;/li&gt;&lt;li&gt;Right-click the new top level Analysis Server node that is displayed in the Object Explorer tree control. The node will be similar to &lt;i&gt;COMPUTERNAME&lt;/i&gt;. In Analysis Services, the node will be similar to &lt;i&gt;Domain\User&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Properties&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the *Security *page.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Add&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type  &lt;span class="codeInline"&gt;NETWORK SERVICE&lt;/span&gt; .&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; twice.&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;
Step 1: Browse the Web site
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Internet Explorer and type  &lt;span class="codeInline"&gt;http://localhost/storecsvs&lt;/span&gt;  in the address bar. With this application, you can perform a variety of real-world Web application tasks, including the following:&lt;/li&gt;&lt;li&gt; Browse the tree control of the product categories.  &lt;/li&gt;&lt;li&gt; Find out what products are offered and available.  &lt;/li&gt;&lt;li&gt; Register a fictitious user on the system, including adding fictitious demographic information.  &lt;/li&gt;&lt;li&gt; Add items to your shopping cart.  &lt;/li&gt;&lt;li&gt; Go through the checkout process.  &lt;/li&gt;&lt;li&gt; View previously completed orders using the account icon.  &lt;/li&gt;&lt;li&gt; Use the &lt;b&gt;Services&lt;/b&gt; icon to browse Web services, or the &lt;b&gt;Search&lt;/b&gt; text box to find products.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Modify the installed sample and recompile (Optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Remove the reference to the StoreClientComponents DLL and PDB files from the bin folder for the Web site.&lt;/li&gt;&lt;li&gt;Add the reference to the StoreClientComponents DLL by selecting the Web site project, and then using the &lt;b&gt;Web Site/References&lt;/b&gt; menu item.&lt;/li&gt;&lt;li&gt;Save the project.&lt;/li&gt;&lt;li&gt;Delete the StoreCSVS folder and its contents from the Temporary ASP.NET Files folder by using the following procedure:&lt;/li&gt;&lt;li&gt; Exit Visual Studio 2005.  &lt;/li&gt;&lt;li&gt; Stop IIS.  &lt;/li&gt;&lt;li&gt; Delete the StoreCSVS folder from the &lt;i&gt;drive&lt;/i&gt;:\WINNT\Microsoft.NET\Framework\v2.0.&lt;i&gt;xxxxx&lt;/i&gt;\Temporary&amp;nbsp;ASP.NET Files folder.  &lt;/li&gt;&lt;li&gt; Empty the &lt;b&gt;Recycle Bin&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Start IIS.  It is not necessary to recompile the sample to run it.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&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 in Management Studio and run the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The common language runtime for SQL Server must be enabled for this sample to run correctly.&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;Integrated 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:43:48 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_Storefront 20080611124348A</guid></item><item><title>Updated Wiki: SS2005!Readme_Storefront</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005!Readme_Storefront&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Storefront
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The Storefront sample for the Adventure Works Cycles sample database in SQL Server 2005 demonstrates how to build a simple Internet retail application by using SQL Server, ADO.NET, and ASP.NET. This document describes how to install the SQL Server 2005 version of the sample application.&lt;br /&gt;This sample works with the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database, which is included with SQL Server 2005. Updates for both the database and this sample are available to download at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.&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;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\Integrated Samples\Storefront\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement an e-commerce Web site. The Web site should offer additional product recommendations based on the contents of the shopping cart (product up sell).&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 Storefront 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; Demographics&lt;/td&gt;&lt;td&gt; XML, XSD &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Globalization&lt;/td&gt;&lt;td&gt; Common language runtime user-defined function, common language runtime user-defined type &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt;  ADO.NET, Transact-SQL, &lt;b&gt;AdventureWorks&lt;/b&gt; sample database &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 that SQL Server 2005 SP1 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;&lt;b&gt;AdventureWorks&lt;/b&gt; SP1 sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; The AdventureWorks CLR sample. By default, this is placed in C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Programmability\CLR\AdventureWorks when you install Database Engine Samples. See the readme file for this sample for additional installation instructions.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created the strong-name key files &lt;b&gt;SampleKey.snk&lt;/b&gt; and &lt;b&gt;UnsafeSampleKey.snk&lt;/b&gt;, generate the key files by using the following procedure. &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 Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.—Or—Open a  .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt window to the Samples folder.  &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;&lt;i&gt;system&lt;/i&gt;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 commands to generate the key files: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt; ** &lt;span class="codeInline"&gt;sn -k UnsafeSampleKey.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;To build the sample, do the following:&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
Step 1: Install the sample and configure IIS
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Alter the permissions of the folder where this sample is installed so it may be accessed by the user under which IIS runs.  See the default installation directory above for the location of this folder.  By default IIS runs under &lt;i&gt;machinename&lt;/i&gt;\ASPNET for IIS 5.1 (Windows XP) and Network Service for IIS 6.0 (Windows 2003).&lt;/li&gt;&lt;li&gt;If you intend to compile by using MSBuild instead of Visual Studio, create the StoreCSVS v-root if it does not already exist by performing the following steps:&lt;/li&gt;&lt;li&gt; Right-click the StoreCSVS folder in &lt;i&gt;drive&lt;/i&gt;:\Program Files\Microsoft SQL Server\90\Samples\Integrated Samples\Storefront\CS\ and select &lt;b&gt;Properties&lt;/b&gt;.   &lt;/li&gt;&lt;li&gt; In the StoreCSVS Properties page, go to the &lt;b&gt;Web Sharing&lt;/b&gt; tab and select &lt;b&gt;Share this folder&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Edit Alias page, make sure &lt;b&gt;Read&lt;/b&gt; is selected as the default Access permission and &lt;b&gt;Script&lt;/b&gt; is selected as the default Application permission, and then click &lt;b&gt;OK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you have not already enabled the Default.aspx page on this server, you can do so by performing the following steps:&lt;/li&gt;&lt;li&gt; Open Internet Information Services (IIS) Manager and expand the local computer in the explorer in the left pane.  &lt;/li&gt;&lt;li&gt; Right-click StoreCSVS and click &lt;b&gt;Properties&lt;/b&gt;. StoreCSVS should be listed under &lt;b&gt;Default Web Site&lt;/b&gt; in &lt;b&gt;Web Sites&lt;/b&gt;. If you have left IIS Manager open from a previous step, you might need to click &lt;b&gt;Action&lt;/b&gt; and then click &lt;b&gt;Refresh&lt;/b&gt; to see the newly added v-root.  &lt;/li&gt;&lt;li&gt; Ensure that the ASP.NET version selected for the StoreCSVS virtual directory is 2.0.&lt;i&gt;xxxxx where xxxxx is the build version&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; On the StoreCSVS Properties page, click the &lt;b&gt;Documents&lt;/b&gt; tab, and then select &lt;b&gt;Enable default content page&lt;/b&gt;. If Default.aspx is not listed as a content page, click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Add Content page, type Default.aspx, click &lt;b&gt;OK&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; again.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio &lt;/li&gt;&lt;li&gt; Open the CS\StoreCSVS.sln solution file.  &lt;/li&gt;&lt;li&gt; On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Rebuild Solution&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you do not have Visual Studio, you can use MSBuild, which is distributed with the .NET Framework SDK 2.0&lt;/li&gt;&lt;li&gt; Open a .NET Framework SDK 2.0 command prompt window.  &lt;/li&gt;&lt;li&gt; Change the directory to the Storefront sample directory.  &lt;/li&gt;&lt;li&gt; Run this command:    &lt;span class="codeInline"&gt;msbuild /property:configuration=debug CS\StoreCSVS.sln&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 3: Configure SQL Server
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Install the Storefront sample stored procedures by running the AWStore.sql script file. You can do this either by using Management Studio or by using the sqlcmd utility. The script file is located in the Scripts directory.&lt;/li&gt;&lt;li&gt; To run the script file by using Management Studio, on the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Open&lt;/b&gt;, locate the Scripts folder, select the AWStore.sql file, and then run the contents of the file.  &lt;/li&gt;&lt;li&gt; To run the script file by using the sqlcmd utility, at the command prompt, change the directory to the folder where the AWStore.sql file is located, and then run the following command: &lt;b&gt;sqlcmd -E -I -i awstore.sql&lt;/b&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 4: Enable the OLAP-based product upsell scenario
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Analysis Services project in &lt;i&gt;drive&lt;/i&gt;:\Program&amp;nbsp;Files\Microsoft&amp;nbsp;SQL&amp;nbsp;Server\90\Tools\Samples\AdventureWorks&amp;nbsp;Analysis&amp;nbsp;Services&amp;nbsp;Project\Adventure&amp;nbsp;Works.sln.&lt;/li&gt;&lt;li&gt;Deploy the project.&lt;/li&gt;&lt;li&gt;In Management Studio, click &lt;b&gt;Connect&lt;/b&gt; in Object Explorer, and then click &lt;b&gt;Analysis Server&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Connect&lt;/b&gt; in the dialog box that appears.&lt;/li&gt;&lt;li&gt;Right-click the new top level Analysis Server node that is displayed in the Object Explorer tree control. The node will be similar to &lt;i&gt;COMPUTERNAME&lt;/i&gt;. In Microsoft Analysis Server 9.0, the node will be similar to &lt;i&gt;Domain\User&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Properties&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the *Security *page.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Add&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type  &lt;span class="codeInline"&gt;NETWORK SERVICE&lt;/span&gt; .&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; twice.&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;
Step 1: Browse the Web site
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Internet Explorer and type  &lt;span class="codeInline"&gt;http://localhost/storecsvs&lt;/span&gt;  in the address bar. With this application, you can perform a variety of real-world Web application tasks, including the following:&lt;/li&gt;&lt;li&gt; Browse the tree control of the product categories.  &lt;/li&gt;&lt;li&gt; Find out what products are offered and available.  &lt;/li&gt;&lt;li&gt; Register a fictitious user on the system, including adding fictitious demographic information.  &lt;/li&gt;&lt;li&gt; Add items to your shopping cart.  &lt;/li&gt;&lt;li&gt; Go through the checkout process.  &lt;/li&gt;&lt;li&gt; View previously completed orders using the account icon.  &lt;/li&gt;&lt;li&gt; Use the &lt;b&gt;Services&lt;/b&gt; icon to browse Web services, or the &lt;b&gt;Search&lt;/b&gt; text box to find products.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Modify the installed sample and recompile (Optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Remove the reference to the StoreClientComponents DLL and PDB files from the bin folder for the Web site.&lt;/li&gt;&lt;li&gt;Add the reference to the StoreClientComponents DLL by selecting the Web site project, and then using the &lt;b&gt;Web Site/References&lt;/b&gt; menu item.&lt;/li&gt;&lt;li&gt;Save the project.&lt;/li&gt;&lt;li&gt;Delete the StoreCSVS folder and its contents from the Temporary ASP.NET Files folder by using the following procedure:&lt;/li&gt;&lt;li&gt; Exit Visual Studio 2005.  &lt;/li&gt;&lt;li&gt; Stop IIS.  &lt;/li&gt;&lt;li&gt; Delete the StoreCSVS folder from the &lt;i&gt;drive&lt;/i&gt;:\WINNT\Microsoft.NET\Framework\v2.0.&lt;i&gt;xxxxx&lt;/i&gt;\Temporary&amp;nbsp;ASP.NET Files folder.  &lt;/li&gt;&lt;li&gt; Empty the &lt;b&gt;Recycle Bin&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Start IIS.  It is not necessary to recompile the sample to run it.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&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 in Management Studio and run the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The common language runtime for SQL Server 2005 must be enabled for this sample to run correctly.&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;Integrated Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;*&lt;br /&gt;			&lt;br /&gt; Getting SQL Server 2005 Assistance*&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;tr&gt;
&lt;td&gt; &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  Changed content: Changed instruction for generating a key file to include a second key file. Changed prerequisites to indicate that SP1 is required because of AdventureWorks database changes.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:43:09 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_Storefront 20080611124309A</guid></item><item><title>Updated Wiki: SS2008!Readme_ReviewWatcher</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Readme_ReviewWatcher&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ReviewWatcher
&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 Adventure Works Cycles ReviewWatcher sample for SQL Server demonstrates how to use query notifications. This sample is used in conjunction with the Adventure Works Cycles Storefront e-commerce sample application. This document describes how to install the SQL Server version of the ReviewWatcher sample application.&lt;br /&gt;This sample requires administrator privileges on the server to run correctly.&lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\CS\ReviewWatcher\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer is trying to build an application that displays changes to the database as they happen, without polling the database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The ReviewWatcher 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; SqlDependency &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, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database which is available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.  &lt;/li&gt;&lt;li&gt; Database Engine Samples which are available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.  &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;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;Follow the steps in the readme.htm file for the Storefront sample application.&lt;/li&gt;&lt;li&gt;Note that in SQL Server, Service Broker is disabled in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. It must be enabled by using the following script for this sample to operate correctly: &lt;span class="codeInline"&gt;ALTER DATABASE AdventureWorks SET ENABLE_BROKER&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Build the application in the solution file in the CS folder using Microsoft Visual Studio 2005 or MSBuild.&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;Browse to the Adventure Works Cycles Storefront sample by starting your Web browser and typing http://localhost/StoreCSVS/ in the Address bar.&lt;/li&gt;&lt;li&gt;Using the category/subcategory tree control menu on the left, browse to a subcategory of a product, and then select the subcategory. &lt;/li&gt;&lt;li&gt;Click a product in the list of products displayed.&lt;/li&gt;&lt;li&gt;Using a file browser, locate and execute the ReviewWatcher.exe application, which is typically installed in bin\debug.&lt;/li&gt;&lt;li&gt;Switch back to your Web browser, locate a particular product, and then click &lt;b&gt;Review this Product&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Fill in the text boxes and click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;A summary of the review should appear in the left pane in the ReviewWatcher application. &lt;/li&gt;&lt;li&gt;Selecting the summary line in the left pane displays the contents of the review in the right pane.&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;Follow the instructions for removing the Storefront sample located in the Readme file for that sample.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The common language runtime for SQL Server must be enabled for this sample to work correctly.&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;Integrated 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:42:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_ReviewWatcher 20080611124237A</guid></item><item><title>Updated Wiki: SS2005!Readme_ReviewWatcher</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005!Readme_ReviewWatcher&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_ReviewWatcher
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The Adventure Works Cycles ReviewWatcher sample for SQL Server 2005 demonstrates how to use query notifications. This sample is used in conjunction with the Adventure Works Cycles Storefront e-commerce sample application. This document describes how to install the SQL Server 2005 version of the ReviewWatcher sample application.&lt;br /&gt;This sample works with the SQL Server 2005 version of the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt;This sample requires administrator privileges on the server to run correctly.&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\Integrated&amp;nbsp;Samples\Storefront\CS\ReviewWatcher\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer is trying to build an application that displays changes to the database as they happen, without polling the database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, Visual C#, and Visual Basic.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The ReviewWatcher 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; SqlDependency &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, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site.  &lt;/li&gt;&lt;li&gt; Database Engine Samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&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;Follow the steps in the readme.htm file for the Storefront sample application.&lt;/li&gt;&lt;li&gt;Note that in SQL Server 2005, Service Broker is disabled in the &lt;b&gt;AdventureWorks&lt;/b&gt; database. It must be enabled by using the following script for this sample to operate correctly: &lt;span class="codeInline"&gt;ALTER DATABASE AdventureWorks SET ENABLE_BROKER&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Build the application in the solution file in the CS folder using Microsoft Visual Studio 2005 or MSBuild.&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;Browse to the Adventure Works Cycles Storefront sample by starting your Web browser and typing http://localhost/StoreCSVS/ in the Address bar.&lt;/li&gt;&lt;li&gt;Using the category/subcategory tree control menu on the left, browse to a subcategory of a product, and then select the subcategory. &lt;/li&gt;&lt;li&gt;Click a product in the list of products displayed.&lt;/li&gt;&lt;li&gt;Using a file browser, locate and execute the ReviewWatcher.exe application, which is typically installed in bin\debug.&lt;/li&gt;&lt;li&gt;Switch back to your Web browser, locate a particular product, and then click &lt;b&gt;Review this Product&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Fill in the text boxes and click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;A summary of the review should appear in the left pane in the ReviewWatcher application. &lt;/li&gt;&lt;li&gt;Selecting the summary line in the left pane displays the contents of the review in the right pane.&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;Follow the instructions for removing the Storefront sample located in the Readme file for that sample.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The common language runtime for SQL Server 2005 must be enabled for this sample to work correctly.&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;Integrated 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 2005 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:41:56 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_ReviewWatcher 20080611124156A</guid></item><item><title>Updated Wiki: SS2008!Readme_HRResume</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Readme_HRResume&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_HRResume
&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 HRResume sample demonstrates how to build a simple multi-tier intranet Microsoft Windows Forms application. The sample demonstrates how to use full-text search on XML documents that are written in several different languages, and combine those results with other relational queries. The sample also demonstrates the use of XQueries on the server. The sample has been designed so that it can be easily localized.&lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\HRResume.&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 implement a resume processing system that is easy to localize and takes advantage of full-text search.&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 HRResume 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, XQuery, Full-text search &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 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; AdventureWorks sample database available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.  &lt;/li&gt;&lt;li&gt; Database Engine Samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.  &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, 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 Management Studio, load and run the Scripts\installCS.sql script to install essential server-side stored procedures and functions.&lt;/li&gt;&lt;li&gt;In Windows Explorer, right-click the CS\HRWebService folder, click &lt;b&gt;Properties&lt;/b&gt;, click the &lt;b&gt;Web Sharing&lt;/b&gt; tab, click &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 that will enable the application to work correctly.&lt;/li&gt;&lt;li&gt;Build the application in the solution file in the CS folder by using Visual Studio 2005 or Microsoft MSBuild.&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\HR\bin\Debug\HR.exe.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Resume&lt;/b&gt; table. Enter various search criteria, select whether you want to search for items that match all the criteria or any of them, and then, optionally, select the language you want to use for the full-text search. Click one of the calendar buttons to use a graphical method of inputting either the start modified date, the end modified date, or both by selecting a range of dates in the calendar control.&lt;/li&gt;&lt;li&gt;After using the calendar form to select one or more dates, click &lt;b&gt;OK&lt;/b&gt; to accept the new dates, or click &lt;b&gt;Cancel&lt;/b&gt; to close the form without changing any dates. Click &lt;b&gt;Search&lt;/b&gt; to initiate the search. A summary of the results is shown in a grid. Selecting a row in the grid displays the resume associated with the person mentioned in that row.&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 in Management Studio and run the contents of the file.&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;Integrated 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:41:26 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_HRResume 20080611124126A</guid></item><item><title>Updated Wiki: SS2008!Readme_DB3D</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Readme_DB3D&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_DB3D
&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;DB3D is an example application that stores, visualizes and manipulates tri-dimensional wireframe models by using SQL Server and .NET Framework.&lt;br /&gt;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\DB3D&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;The DB3D application illustrates how to take advantage of various SQL Server 2005 features to handle several common application needs.&lt;br /&gt;The application can load tri-dimensional wireframe models from a file or from a database. It can also upload new wireframe models into a database by using various techniques that show different performance characteristics. &lt;br /&gt;Wireframe models are represented by using triangles in space. Triangles are directly stored in the database as user-defined types and also used by the client application to manipulate the rendered wireframes.&lt;br /&gt;Once in the database, wireframe models can be manipulated interactively on the client, or through Transact-SQL in the server by using the SQL-CLR methods included in the sample library. The application also supports reporting on the wireframes that are contained in the database, for which it uses custom aggregates to perform computation close to the data and avoids data-shipping costs.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL and Visual C#.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The DB3D sample uses the new features of SQL Server as shown in the following table:&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; Representing wireframe model data&lt;/td&gt;&lt;td&gt; Use of SQL Server user-defined types to appropriately represent pieces of information of the problem domain of the application. In the case of DB3D, two user-defined types are defined, &amp;quot;Triangle&amp;quot; and &amp;quot;Point3D&amp;quot;. The example shows how to use the types both from within SQL Server and from a client application through ADO.NET 2.0. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Manipulating wireframe models&lt;/td&gt;&lt;td&gt; The &amp;quot;Triangle&amp;quot; and &amp;quot;Point3D&amp;quot; user-defined types include, in addition to their persistent state, a rich set of methods to manipulate them (for example to rotate a triangle in space). Those methods can be used both from the client and from within SQL Server itself to interact and change models. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Computing summary information for wireframe models&lt;/td&gt;&lt;td&gt; Use of SQL Server user-defined aggregates to perform processing close to the data (in the database) using custom algorithms. The sample can compute the surface of a given model by using a custom aggregate. This lets the system perform the computation in an efficient environment (CLR) without having to ship the data to another tier. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Uploading wireframe data quickly into the database&lt;/td&gt;&lt;td&gt; The application includes two strategies for uploading data: one based on regular INSERT statements and the other uses the new SqlBulkCopy class included in ADO.NET 2.0. Both are available so their performance characteristics can be compared. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Connect-to-database dialog box&lt;/td&gt;&lt;td&gt; The new SqlConnectionStringBuilder class is used to construct a connection string that is based on user-input in a safe way, that helps protect the application from connection-string-injection attacks. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Connect-to-database dialog box&lt;/td&gt;&lt;td&gt; The new SqlDataSourceEnumerator class is used to obtain the list of the instances of SQL Server that are available in the network. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Connect-to-database dialog box&lt;/td&gt;&lt;td&gt; The new database schema access API is used to retrieve the list of available databases from a connection. &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 that 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 SQL Server Express &lt;a href="http://go.microsoft.com/fwlink/?LinkId=31046" class="externalLink"&gt;Documentation and Samples 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 &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.  &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 the strong-name key file &lt;b&gt;SampleKey.snk&lt;/b&gt; generate the key file by 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 Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.—Or—Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the Command Prompt window to the Samples folder.  &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server 2005&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;&lt;i&gt;system&lt;/i&gt;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;To build the sample, do the following:&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Compile the sample by using Visual Studio 2005 and the provided Visual Studio solution or by using Microsoft MSBuild, which is included in the .NET Framework SDK 2.0. Run a command similar to the following at the command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS\db3d.sln&lt;/span&gt; &lt;/li&gt;&lt;li&gt;If you did not install the SQL Server Database Engine samples in the default location, modify the path in the CREATE ASSEMBLY part of the script in Scripts\InstallCS.sql to refer to location where the samples were installed.&lt;/li&gt;&lt;li&gt;If you are not an administrator for the SQL Server instance you are using, you must have an administrator grant you &lt;b&gt;CreateAssembly&lt;/b&gt; permission to complete the installation.&lt;/li&gt;&lt;li&gt;Open the scripts\installCS.sql in SQL Server Management Studio. Run the script that is contained in the file, or run a command similar to the following at the command prompt: &lt;span class="codeInline"&gt;sqlcmd -E -I -i Scripts\InstallCS.sql&lt;/span&gt; This script performs the following actions: &lt;/li&gt;&lt;li&gt; Drops the old db3d database if it exists.  &lt;/li&gt;&lt;li&gt; Registers the db3dsql assembly.  &lt;/li&gt;&lt;li&gt; Registers some CLR UDTs and an aggregate.  &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;
Step 1: Loading models from files
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;The first time to run the application, it will not have any models or &amp;quot;wireframes&amp;quot; in the database. You must load them from files. The &amp;quot;models&amp;quot; subdirectory contains several model files you can use. &lt;/li&gt;&lt;li&gt;Click &lt;b&gt;File&lt;/b&gt;, click &lt;b&gt;Open&lt;/b&gt; and select one of the models from the &amp;quot;models&amp;quot; subdirectory. The model will display in the screen, and you can use the X, Y and Z sliders to rotate the model. You can see the user-defined types being used in the client to represent triangle information and to perform the transformations in the Triangle.cs and Point3D.cs files in the db3dsql project.&lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Step 2: Connecting to a database
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;To connect to a database, click &lt;b&gt;Database&lt;/b&gt; and then click &lt;b&gt;Connect&lt;/b&gt;. A dialog box will pop up where you can enter the name of the server, the database and authentication information. You should specify db3d as the name of the database to use.  Once you are done click &lt;b&gt;OK&lt;/b&gt; to connect. You can see how to build a connection string that is based on user input in the see the connectToolStripMenuItem_Click method in the MainFrm.cs file in the db3dwin project.&lt;/li&gt;&lt;li&gt;If you want, you can use the server and the database combo-boxes to browse the available servers and databases. You can see how to obtain the list of servers and/or databases in the file ConnectDlg.cs in the db3dwin project.&lt;/li&gt;&lt;li&gt;NOTE: the list of servers will include only those servers in the network that are currently available and that have been specifically enabled for discoverability.&lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Step 3: Uploading a model to the database
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Once connected, you can upload a model&lt;/li&gt;&lt;li&gt;With a model loaded from a file from step 1, and after you connect to the database as described in step 2, click &lt;b&gt;Database&lt;/b&gt; and then click &lt;b&gt;Copy wireframe&lt;/b&gt;. This will prompt for a name and upload the triangle information to the database. You can also decide whether to enable &amp;quot;fast upload&amp;quot; using bulk-copy. You can experiment with the difference between doing many inserts one by one and using SqlBulkCopy for it. See the WireframeDbStorage.cs file in the db3dlib project.&lt;/li&gt;&lt;li&gt;You can repeat this operation with several other models (or even several copies of the same one with different names), so that you have a database that has many models in it.&lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Step 4: Viewing more model information
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;The application has a second tab that lets you see a list of all the wireframes in the database. You can also see the number of triangles they are made of and the total surface of the model. The interesting thing about this is that the surface is computed in the server without having to ship the data to the client by using a user-defined aggregate. You can see the user-defined aggregate implementation in the surface.cs file in the db3dsql project. Also see step 6 for information about how to use it in Transact-SQL.&lt;/li&gt;&lt;li&gt;To see this information, click the &lt;b&gt;Wireframe Information&lt;/b&gt; tab.&lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Step 5: Rotating a model using Transact-SQL
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;When you use the slider controls in the client to rotate a wireframe, the application calls the &amp;quot;rotate&amp;quot; methods in each of the triangle objects that make up the model. Because these methods are part of the user-defined type that is registered in SQL Server, they can be used directly in the server.&lt;/li&gt;&lt;li&gt;Let's say that you can to rotate a model a fixed angle and store it rotated. Instead of bringing the data to the client, applying the transform, and then sending it back to the server, you can do this with a single T-SQL statement. To see this in action follow these steps:&lt;/li&gt;&lt;li&gt;Run the db3bwin application so that you can see the models. Connect to the database and select one model; for example, &amp;quot;tiger&amp;quot; (tiger.raw is the file that contains it if you did not upload it already).&lt;/li&gt;&lt;li&gt;Press F5 to refresh, and you will see that the tiger is looking towards you&lt;/li&gt;&lt;li&gt;Connect to the DB3D database using SQL Server Management Studio or some other query tool (for example, sqlcmd). Execute the following query: *  UPDATE Triangle SET TriangleObj.RotateY(0.6)FROM Triangle t INNER JOIN Wireframe w ON t.WireframeID = w.WireframeID WHERE w.WireframeName = 'tiger' *&lt;/li&gt;&lt;li&gt;Now go back to the application and press F5. You will see that, when the tiger is reloaded from the database, it will appear rotated in the Y axis.&lt;/li&gt;
&lt;/ul&gt;&lt;h6&gt;
Step 6: Computing the surface of a model using T-SQL
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;The grid in the &amp;quot;Wireframe Information&amp;quot; shows the total surface of a given wireframe. This is done using the &amp;quot;Surface&amp;quot; custom aggregate that aggregates Triangle objects into a scalar value that represents the sum of the areas of all the triangles that matched the criteria of the query. You can use the custom aggregate in Transact-SQL directly. For example, you can execute this query in SQL Server Management Studio or some other query tool (for example, sqlcmd): *  CREATE PROCEDURE ListWireframesDetailed AS    SELECT w.WireframeID, WireframeName, COUNT(*) AS TriangleCount,           dbo.Surface(t.TriangleObj) AS Surface    FROM Wireframe w    INNER JOIN Triangle t ON w.WireframeID = t.WireframeID    GROUP BY w.WireframeID, WireframeName *&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;Use the following procedure to remove the sample:&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Load and run Scripts\cleanup.sql in Management Studio. 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;The CLR for SQL Server or SQL Server Express must be enabled for this sample to work correctly.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Error message during deployment
&lt;/h5&gt;When running the application from Visual Studio 2005, you might get an error that says that there was an error during deployment. Because you already created the database with all its elements by executing the createdb.sql script, you do not have to worry about that. It is. ok to say &amp;quot;ok to continue&amp;quot;. If later, you change the db3dsql assembly, you will have to re-deploy it to SQL Server by using the script (or part of the script if you do not want to lose the existing model data).&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
About the graphics rendering code
&lt;/h5&gt;This example is designed specifically to illustrate usage of various new features in SQL Server and Visual Studio 2005. It is not the goal of the example to provide a real 3-D visualization tool. To avoid unnecessary complexity in the example, the code that renders 3-D models in the screen is very simplistic and does not not perform common optimizations such as double-buffering nor does it do appropriate adjustments such as perspective correction. &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;
Change History
&lt;/h3&gt; &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:40:17 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_DB3D 20080611124017A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=Home&amp;version=33</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 End to End Product Samples&lt;br /&gt; &lt;br /&gt;This project contains End to End samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing End to End 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=MSFTEEProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Individual Samples&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DB3D &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_DB3D&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_DB3D&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; HRResume &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_HRResume&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_HRResume&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Storefront Family&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ReviewWatcher &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_ReviewWatcher&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_ReviewWatcher&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Storefront &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Storefront&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Storefront&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Service Broker Ordering Service Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Service%20Broker%20Ordering%20Service%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Service%20Broker%20Ordering%20Service%20Sample&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>Wed, 11 Jun 2008 00:38:56 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080611123856A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=Home&amp;version=32</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 End to End Product Samples&lt;br /&gt; &lt;br /&gt;&lt;b&gt;SQL Server 2008 RC0&lt;/b&gt; product samples are &lt;a href="/MSFTEEProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;now available&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;This project contains End to End samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing End to End 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=MSFTEEProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Individual Samples&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DB3D &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_DB3D&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_DB3D&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; HRResume &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_HRResume&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_HRResume&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Storefront Family&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ReviewWatcher &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_ReviewWatcher&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_ReviewWatcher&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Storefront &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Storefront&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Storefront&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Service Broker Ordering Service Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Service%20Broker%20Ordering%20Service%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Service%20Broker%20Ordering%20Service%20Sample&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>Tue, 10 Jun 2008 23:49:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080610114937P</guid></item><item><title>RELEASED: SQL Server 2008 RC0 (Jun 10, 2008)</title><link>http://www.codeplex.com/MSFTEEProdSamples/Release/ProjectReleases.aspx?ReleaseId=14275</link><description>&lt;div&gt;
This release contains the SQL Server 2008 RC0 product samples for multi-technology, end-to-end and integrated applications.&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Tue, 10 Jun 2008 23:22:10 GMT</pubDate><guid isPermaLink="false">RELEASED: SQL Server 2008 RC0 (Jun 10, 2008) 20080610112210P</guid></item><item><title>UPDATED RELEASE: SQL Server 2008 RC0 (Jun 10, 2008)</title><link>http://www.codeplex.com/MSFTEEProdSamples/Release/ProjectReleases.aspx?ReleaseId=14275</link><description>&lt;div&gt;
This release contains the SQL Server 2008 RC0 product samples for multi-technology, end-to-end and integrated applications.&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Tue, 10 Jun 2008 23:22:10 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: SQL Server 2008 RC0 (Jun 10, 2008) 20080610112210P</guid></item><item><title>UPDATED WIKI: SS2008!Service Broker Ordering Service Sample</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Service Broker Ordering Service Sample&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Service Broker Ordering Service Sample
&lt;/h2&gt; &lt;br /&gt; 2/19/2008 9:32:55 PM&lt;br /&gt; [This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]  &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 Adventure Works Storefront sample accepts an online order and returns a predefined ship date in the order status screen. This sample adds backend order processing capabilities to Adventure Works Storefront.&lt;br /&gt;This sample illustrates the fundamental concepts of Service Broker and allows you to view the Transact-SQL scripts used to run the sample, and the results of executing that script in the Service Broker tables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample requires the Adventure Works Storefront sample. For more information about installing the Storefront sample, see &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Storefront&amp;amp;referringTitle=SS2008%21Service%20Broker%20Ordering%20Service%20Sample"&gt;Readme_Storefront&lt;/a&gt;. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement a backend order processing system for an e-commerce Web site.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, and Visual C#.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; Adventure Works Storefront sample  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The C# source code is built with the Storefront sample. To create the SQL Server portion of the sample, follow the steps below.&lt;br /&gt;All Service Broker applications are composed of a collection of SQL Server objects that provide the service functionality. In this step, you will create the Service Broker environment, consisting of the XML schema collections, message types, contracts, queues, and services required to operate it.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Set up the Service Broker environment
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the Transact-SQL script to set up Service Broker. You can run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;, or you can run the individual scripts.&lt;/li&gt;&lt;li&gt; Run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront.  &lt;/li&gt;&lt;li&gt; Alternatively, you can run the individual scripts in the following order:  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\Setup.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupOrderingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupPurchasingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupManufacturingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupShippingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;Configure the Storefront.&lt;/li&gt;&lt;li&gt; Edit the &lt;b&gt;web.config&lt;/b&gt; file, located in the directory C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\CS\StoreCSVS. Find the &lt;b&gt;ExtendedOrderProcessing&lt;/b&gt; attribute, and change the value to &lt;b&gt;true&lt;/b&gt;. After making the change, this element should look like the element below:   &lt;span class="codeInline"&gt;&amp;lt;add key=&amp;quot;ExtendedOrderProcessing&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;In this exercise, you will go to the Adventure Works Web site and order an in-stock item. Because the item is in stock, the Ordering Service sends a Shipping Request message to the Shipping Service, and the Shipping Service responds back to the Ordering Service with a Shipping Accept message. Follow the steps in this exercise to see this process in SQL Server Management Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Order an in-stock item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left pane, expand &lt;b&gt;Accessories&lt;/b&gt;, and then expand &lt;b&gt;Helmets&lt;/b&gt;. Select &lt;b&gt;Sports-100 Helmet, Red&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the &lt;b&gt;Shopping Cart&lt;/b&gt; page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock buy item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left menu, expand &lt;b&gt;Clothing&lt;/b&gt;. &amp;nbsp;Click the submenu item &lt;b&gt;Tights&lt;/b&gt;. Pick &lt;b&gt;Women’s Tights, M&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. In the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. In the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock make item ready for manufacturing
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;On the left menu, expand &lt;b&gt;Components&lt;/b&gt;. &amp;nbsp;Click &lt;b&gt;Mountain Frames&lt;/b&gt;, select &lt;b&gt;HL Mountain Frame – Black, 38&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\OrderingServiceScripts. The result shows the processing flow, including Server Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run &lt;b&gt;uninstallorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 20 Feb 2008 07:33:08 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: SS2008!Service Broker Ordering Service Sample 20080220073308A</guid></item><item><title>UPDATED WIKI: SS2005!Service Broker Ordering Service Sample</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005!Service Broker Ordering Service Sample&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Service Broker Ordering Service Sample
&lt;/h2&gt; &lt;br /&gt; 2/19/2008 11:18:35 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The Adventure Works Storefront sample accepts an online order and returns a predefined ship date in the order status screen. This sample adds backend order processing capabilities to Adventure Works Storefront.&lt;br /&gt;This sample illustrates the fundamental concepts of Service Broker. It lets you view the Transact-SQL scripts that are used to run the sample, and the results of executing that script in the Service Broker tables.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  This sample requires the Adventure Works Storefront sample. For more information about installing the Storefront sample, see &lt;a href="http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Storefront&amp;amp;referringTitle=SS2005%21Service%20Broker%20Ordering%20Service%20Sample"&gt;Readme_Storefront&lt;/a&gt;. By default, the Adventure Works Storefront sample is installed at C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &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 implement a backend order processing system for an e-commerce Web site.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL, XML, XSD, and Visual C#.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server 2005, including the following components:  &lt;/li&gt;&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt;&lt;b&gt;AdventureWorks&lt;/b&gt; sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; Adventure Works Storefront sample  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The C# source code is built with the Storefront sample. To create the SQL Server portion of the sample, follow the steps below.&lt;br /&gt;All Service Broker applications are composed of a collection of SQL Server objects that provide the service functionality. In this step, you will create the Service Broker environment, consisting of the XML schema collections, message types, contracts, queues, and services required to operate it.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Set up the Service Broker environment
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the Transact-SQL script to set up Service Broker. You can run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;, or you can run the individual scripts.&lt;/li&gt;&lt;li&gt; Run &lt;b&gt;installorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront.  &lt;/li&gt;&lt;li&gt; Alternatively, you can run the individual scripts in the following order:  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\Setup.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupOrderingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupPurchasingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupManufacturingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;&lt;b&gt;OrderingServiceScripts\SetupShippingServiceProgram.sql&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;Configure the Storefront.&lt;/li&gt;&lt;li&gt; Edit the &lt;b&gt;web.config&lt;/b&gt; file, located in the directory C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\CS\StoreCSVS. Find the &lt;b&gt;ExtendedOrderProcessing&lt;/b&gt; attribute, and change the value to &lt;b&gt;true&lt;/b&gt;. After making the change, this element should look like the element below:   &lt;span class="codeInline"&gt;&amp;lt;add key=&amp;quot;ExtendedOrderProcessing&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;/span&gt;     &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;In this exercise, you will visit the Adventure Works Web site and order an in-stock item. Because the item is in stock, the Ordering Service sends a Shipping Request message to the Shipping Service. The Shipping Service then responds to the Ordering Service with a Shipping Accept message. Follow the steps in this exercise to see this process in SQL Server Management Studio.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Order an in-stock item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left pane, expand &lt;b&gt;Accessories&lt;/b&gt;, and then expand &lt;b&gt;Helmets&lt;/b&gt;. Select &lt;b&gt;Sports-100 Helmet, Red&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the &lt;b&gt;Shopping Cart&lt;/b&gt; page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock buy item
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;In the left menu, expand &lt;b&gt;Clothing&lt;/b&gt;. &amp;nbsp;Click the submenu item &lt;b&gt;Tights&lt;/b&gt;. Pick &lt;b&gt;Women’s Tights, M&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. In the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. In the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Order an out-of-stock make item ready for manufacturing
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Internet Explorer, open &lt;b&gt;http://localhost/storeCSVS/&lt;/b&gt; .&lt;/li&gt;&lt;li&gt;On the left menu, expand &lt;b&gt;Components&lt;/b&gt;. &amp;nbsp;Click &lt;b&gt;Mountain Frames&lt;/b&gt;, select &lt;b&gt;HL Mountain Frame – Black, 38&lt;/b&gt;, and then click &lt;b&gt;Add to Cart&lt;/b&gt;. On the next page, click &lt;b&gt;Final Check Out&lt;/b&gt;. On the next page, click &lt;b&gt;Submit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, run &lt;b&gt;AdministrationAndTroubleShooting.sql&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront\OrderingServiceScripts. The result shows the processing flow, including Service Broker queue tables, ordering state, and audit logs.&lt;/li&gt;&lt;li&gt;Run &lt;b&gt;purge.sql&lt;/b&gt; to clean up contents in queues and tables before continuing on to the next exercise.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Remove the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run &lt;b&gt;uninstallorderingservice.cmd&lt;/b&gt;. The default folder is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\\Storefront. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 20 Feb 2008 07:32:51 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: SS2005!Service Broker Ordering Service Sample 20080220073251A</guid></item><item><title>UPDATED WIKI: SS2008!Readme_Storefront</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2008!Readme_Storefront&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Storefront
&lt;/h2&gt; &lt;br /&gt; 2/19/2008 9:32:55 PM&lt;br /&gt; [This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]  &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 Storefront sample for the Adventure Works Cycles sample database in SQL Server demonstrates how to build a simple Internet retail application by using SQL Server, ADO.NET, and ASP.NET. This document describes how to install the SQL Server version of the sample application.&lt;br /&gt;This sample works with the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database, which is included with SQL Server. Updates for both the database and this sample are available to download at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.&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;The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement an e-commerce Web site. The Web site should offer additional product recommendations based on the contents of the shopping cart (product up sell).&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 Storefront 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; Demographics&lt;/td&gt;&lt;td&gt; XML, XSD &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Globalization&lt;/td&gt;&lt;td&gt; Common language runtime user-defined function, common language runtime user-defined type &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt;  ADO.NET, Transact-SQL, &lt;b&gt;AdventureWorks&lt;/b&gt; sample database &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 that 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;&lt;b&gt;AdventureWorks&lt;/b&gt; SP1 sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks&lt;/b&gt; CLR sample. By default, this is placed in C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Programmability\CLR\AdventureWorks when you install Database Engine Samples. See the readme file for this sample for additional installation instructions.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/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;
Step 1: Install the sample and configure IIS
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Alter the permissions of the folder where this sample is installed so it may be accessed by the user under which IIS runs.  See the default installation directory above for the location of this folder.  By default IIS runs under &lt;i&gt;machinename&lt;/i&gt;\ASPNET for IIS 5.1 (Windows XP) and Network Service for IIS 6.0 (Windows 2003).&lt;/li&gt;&lt;li&gt;If you intend to compile by using MSBuild instead of Visual Studio, create the StoreCSVS v-root if it does not already exist by performing the following steps:&lt;/li&gt;&lt;li&gt; Right-click the StoreCSVS folder in C:\Program Files\Microsoft SQL Server\100\Samples\Integrated Samples\Storefront\CS\ and select &lt;b&gt;Properties&lt;/b&gt;.   &lt;/li&gt;&lt;li&gt; In the StoreCSVS Properties page, go to the &lt;b&gt;Web Sharing&lt;/b&gt; tab and select &lt;b&gt;Share this folder&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Edit Alias page, make sure &lt;b&gt;Read&lt;/b&gt; is selected as the default Access permission and &lt;b&gt;Script&lt;/b&gt; is selected as the default Application permission, and then click &lt;b&gt;OK&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you have not already enabled the Default.aspx page on this server, you can do so by performing the following steps:&lt;/li&gt;&lt;li&gt; Open Internet Information Services (IIS) Manager and expand the local computer in the explorer in the left pane.  &lt;/li&gt;&lt;li&gt; Right-click StoreCSVS and click &lt;b&gt;Properties&lt;/b&gt;. StoreCSVS should be listed under &lt;b&gt;Default Web Site&lt;/b&gt; in &lt;b&gt;Web Sites&lt;/b&gt;. If you have left IIS Manager open from a previous step, you might need to click &lt;b&gt;Action&lt;/b&gt; and then click &lt;b&gt;Refresh&lt;/b&gt; to see the newly added v-root.  &lt;/li&gt;&lt;li&gt; Ensure that the ASP.NET version selected for the StoreCSVS virtual directory is 2.0.&lt;i&gt;xxxxx where xxxxx is the build version&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; On the StoreCSVS Properties page, click the &lt;b&gt;Documents&lt;/b&gt; tab, and then select &lt;b&gt;Enable default content page&lt;/b&gt;. If Default.aspx is not listed as a content page, click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; On the Add Content page, type Default.aspx, click &lt;b&gt;OK&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt; again.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Build the sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio &lt;/li&gt;&lt;li&gt; Open the CS\StoreCSVS.sln solution file.  &lt;/li&gt;&lt;li&gt; On the &lt;b&gt;Build&lt;/b&gt; menu, click &lt;b&gt;Rebuild Solution&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt;If you do not have Visual Studio, you can use MSBuild, which is distributed with the .NET Framework SDK 2.0&lt;/li&gt;&lt;li&gt; Open a .NET Framework SDK 2.0 command prompt window.  &lt;/li&gt;&lt;li&gt; Change the directory to the Storefront sample directory.  &lt;/li&gt;&lt;li&gt; Run this command:    &lt;span class="codeInline"&gt;msbuild /property:configuration=debug CS\StoreCSVS.sln&lt;/span&gt;   &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 3: Configure SQL Server
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Install the Storefront sample stored procedures by running the AWStore.sql script file. You can do this either by using Management Studio or by using the sqlcmd utility. The script file is located in the Scripts directory.&lt;/li&gt;&lt;li&gt; To run the script file by using Management Studio, on the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Open&lt;/b&gt;, locate the Scripts folder, select the AWStore.sql file, and then run the contents of the file.  &lt;/li&gt;&lt;li&gt; To run the script file by using the sqlcmd utility, at the command prompt, change the directory to the folder where the AWStore.sql file is located, and then run the following command: &lt;b&gt;sqlcmd -E -I -i awstore.sql&lt;/b&gt;  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 4: Enable the OLAP-based product upsell scenario
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open the Analysis Services project in &amp;lt;&lt;i&gt;drive&lt;/i&gt;&amp;gt;:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks&amp;nbsp;Analysis&amp;nbsp;Services&amp;nbsp;Project\Adventure&amp;nbsp;Works.sln.&lt;/li&gt;&lt;li&gt;Deploy the project.&lt;/li&gt;&lt;li&gt;In Management Studio, click &lt;b&gt;Connect&lt;/b&gt; in Object Explorer, and then click &lt;b&gt;Analysis Server&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Connect&lt;/b&gt; in the dialog box that appears.&lt;/li&gt;&lt;li&gt;Right-click the new top level Analysis Server node that is displayed in the Object Explorer tree control. The node will be similar to &lt;i&gt;COMPUTERNAME&lt;/i&gt;. In Analysis Services, the node will be similar to &lt;i&gt;Domain\User&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Properties&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the *Security *page.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Add&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type  &lt;span class="codeInline"&gt;NETWORK SERVICE&lt;/span&gt; .&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt; twice.&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;
Step 1: Browse the Web site
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open Internet Explorer and type  &lt;span class="codeInline"&gt;http://localhost/storecsvs&lt;/span&gt;  in the address bar. With this application, you can perform a variety of real-world Web application tasks, including the following:&lt;/li&gt;&lt;li&gt; Browse the tree control of the product categories.  &lt;/li&gt;&lt;li&gt; Find out what products are offered and available.  &lt;/li&gt;&lt;li&gt; Register a fictitious user on the system, including adding fictitious demographic information.  &lt;/li&gt;&lt;li&gt; Add items to your shopping cart.  &lt;/li&gt;&lt;li&gt; Go through the checkout process.  &lt;/li&gt;&lt;li&gt; View previously completed orders using the account icon.  &lt;/li&gt;&lt;li&gt; Use the &lt;b&gt;Services&lt;/b&gt; icon to browse Web services, or the &lt;b&gt;Search&lt;/b&gt; text box to find products.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
Step 2: Modify the installed sample and recompile (Optional)
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Remove the reference to the StoreClientComponents DLL and PDB files from the bin folder for the Web site.&lt;/li&gt;&lt;li&gt;Add the reference to the StoreClientComponents DLL by selecting the Web site project, and then using the &lt;b&gt;Web Site/References&lt;/b&gt; menu item.&lt;/li&gt;&lt;li&gt;Save the project.&lt;/li&gt;&lt;li&gt;Delete the StoreCSVS folder and its contents from the Temporary ASP.NET Files folder by using the following procedure:&lt;/li&gt;&lt;li&gt; Exit Visual Studio 2005.  &lt;/li&gt;&lt;li&gt; Stop IIS.  &lt;/li&gt;&lt;li&gt; Delete the StoreCSVS folder from the &lt;i&gt;drive&lt;/i&gt;:\WINNT\Microsoft.NET\Framework\v2.0.&lt;i&gt;xxxxx&lt;/i&gt;\Temporary&amp;nbsp;ASP.NET Files folder.  &lt;/li&gt;&lt;li&gt; Empty the &lt;b&gt;Recycle Bin&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Start IIS.  It is not necessary to recompile the sample to run it.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&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 in Management Studio and run the contents of the file.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;The common language runtime for SQL Server must be enabled for this sample to run correctly.&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;Integrated 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, 20 Feb 2008 07:32:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: SS2008!Readme_Storefront 20080220073236A</guid></item><item><title>UPDATED WIKI: SS2005!Readme_Storefront</title><link>http://www.codeplex.com/MSFTEEProdSamples/Wiki/View.aspx?title=SS2005!Readme_Storefront&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Storefront
&lt;/h2&gt; &lt;br /&gt; 2/19/2008 11:18:35 PM&lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 14 April 2006 &lt;/b&gt;&lt;br /&gt;The Storefront sample for the Adventure Works Cycles sample database in SQL Server 2005 demonstrates how to build a simple Internet retail application by using SQL Server, ADO.NET, and ASP.NET. This document describes how to install the SQL Server 2005 version of the sample application.&lt;br /&gt;This sample works with the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database, which is included with SQL Server 2005. Updates for both the database and this sample are available to download at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;CodePlex&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site.&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;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\Integrated Samples\Storefront\.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A developer wants to implement an e-commerce Web site. The Web site should offer additional product recommendations based on the contents of the shopping cart (product up sell).&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 Storefront 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; Demographics&lt;/td&gt;&lt;td&gt; XML, XSD &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Globalization&lt;/td&gt;&lt;td&gt; Common language runtime user-defined function, common language runtime user-defined type &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Overall&lt;/td&gt;&lt;td&gt;  ADO.NET, Transact-SQL, &lt;b&gt;AdventureWorks&lt;/b&gt; sample database &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 that SQL Server 2005 SP1 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;&lt;b&gt;AdventureWorks&lt;/b&gt; SP1 sample database  &lt;/li&gt;&lt;li&gt; Database Engine Samples  &lt;/li&gt;&lt;li&gt; The AdventureWorks CLR sample. By default, this is placed in C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Programmability\CLR\AdventureWorks when you install Database Engine Samples. See the readme file for this sample for additional installation instructions.  &lt;/li&gt;&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. See &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created the strong-name key files &lt;b&gt;SampleKey.snk&lt;/b&gt; and &lt;b&gt;UnsafeSampleKey.snk&lt;/b&gt;, generate the key files by using the following procedure. &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 Visual Studio 2005&lt;/b&gt;, point to &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2005 Command Prompt&lt;/b&gt;.—Or—Open a  .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At the command prompt, use the change directory (CD) command to change the current folder of the command prompt window to the Samples folder.  &lt;b&gt;Note:   To determine the folder where samples are located, click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Progra