<?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: Scripts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Project/ProjectRss.aspx</link><description>This project contains Scripts samples released with Microsoft SQL Server product.   </description><item><title>New Post: Sql Scripts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Thread/View.aspx?ThreadId=29100</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Jaron,&lt;/p&gt;
&lt;p&gt;This would be a good question to post on our &lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=85&amp;SiteID=1"&gt;TSQL Forum&lt;/a&gt;.&lt;/p&gt;
&lt;div style="border-right:medium none;padding-right:0.2em;border-top:#aaa 0.1em dotted;padding-left:0.2em;padding-bottom:0.2em;margin:1em 0em 2.5em 3em;border-left:medium none;padding-top:0.2em;border-bottom:#aaa 0.1em dotted;font-style:italic"&gt;&lt;br&gt;
JARON wrote:&lt;br&gt;
Hi all,&lt;br&gt;
i'm updating a new 'commun management' software n i wanna update the database bcoz i added many extra tables.&lt;br&gt;
i did write scripts for all the tables this way:&lt;br&gt;
&lt;br&gt;
Create...........&lt;br&gt;
Drop...........&lt;br&gt;
Alter........&lt;br&gt;
&lt;br&gt;
so our clients would be able to have access to it.&lt;br&gt;
but i have been asked to write other ways script than using 'alter', becoz its like im having the database for the first time and our clients have the older version...&lt;br&gt;
Any Ideas??&lt;br&gt;
&lt;br&gt;
10x in advance &lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>edlehman</author><pubDate>Fri, 13 Jun 2008 19:22:49 GMT</pubDate><guid isPermaLink="false">New Post: Sql Scripts 20080613072249P</guid></item><item><title>Source code checked in, #11622</title><link>http://www.codeplex.com/MSFTScrptProdSamples/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: SS2005!Readme_Snapshot</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Readme_Snapshot&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Snapshot
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The purpose of the &lt;b&gt;DatabaseSnapshot&lt;/b&gt; sample is to demonstrate the database snapshot capabilities of Microsoft SQL Server 2005. For information about this new feature, refer to the topic, &amp;quot;Database Snapshots&amp;quot; in SQL Server Books Online. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A database snapshot is a read-only, static view of a database. This database is called the source database. Each database snapshot is transaction-consistent with the source database at the moment of the snapshot's creation. A snapshot persists until it is explicitly dropped by the database owner. Multiple snapshots can exist on a database. This sample creates a new database snapshot of the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;Transact-SQL&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running either of the scripts included in 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; 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; (OLTP) sample database  &lt;/li&gt;&lt;li&gt; SQL Server Engine samples  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Installing and Running the Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open the file &lt;b&gt;CreateDatabaseSnapshot.sql&lt;/b&gt; script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\DatabaseSnapshot\Scripts folder, and click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:32:11 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_Snapshot 20080611123211A</guid></item><item><title>Updated Wiki: SS2008!Readme_SlidingWindow</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_SlidingWindow&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_SlidingWindow 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 purpose of the SlidingWindow sample is to demonstrate the ability to move partitions between tables by using the Transact-SQL ALTER TABLE SWITCH statement. For information about this feature, see &amp;quot;Designing Partitions to Manage Subsets of Data&amp;quot; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications should not be connected to or used with your production SQL Server database without the permission of the system administrator. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenarios
&lt;/h3&gt;The sample moves the oldest month of data from the partitioned table &lt;b&gt;TransactionHistory&lt;/b&gt; to the partitioned table &lt;b&gt;TransactionHistoryArchive&lt;/b&gt;. Before running the partition switch, the partition function for &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; is modified to receive the new partition. Also a CHECK constraint is added to table &lt;b&gt;TransactionHistory&lt;/b&gt;. Following the partition switch, both the &lt;b&gt;TransactionHistory&lt;/b&gt; table and the &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; table are restored to a partitioning structure that would allow for a similar plan to run the following month.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, follow these steps.&lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt; Install SQL Server and make sure that you include the following components:  &lt;/li&gt;&lt;li&gt; Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and SQL Server Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the SlidingWindow sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the SlidingWindow sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Run the PartitioningScript sample. For more information, see &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_PartitioningScript&amp;amp;referringTitle=SS2008%21Readme_SlidingWindow"&gt;Readme_PartitioningScript Sample&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;In SQL Server Management Studio, open the file Sliding.sql. The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\\Administration\SlidingWindow\Scripts, and then click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:31:41 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_SlidingWindow 20080611123141A</guid></item><item><title>Updated Wiki: SS2008!Readme_PartitioningScript</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_PartitioningScript&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_PartitioningScript 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 purpose of the PartitioningScript sample is to demonstrate the table and index partitioning capabilities of SQL Server. For information about this feature, see &amp;quot;Partitioned Tables and Indexes&amp;quot; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications should not be connected to or used with your production SQL Server database without the permission of the system administrator. &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;In the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database, the &lt;b&gt;TransactionHistory&lt;/b&gt; table is used to record each sales order, purchase order, and work order transaction. Therefore, this table is one of the largest and most heavily accessed tables in the database. The &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; table was created to store older transactions from the &lt;b&gt;TransactionHistory&lt;/b&gt; table. Data is transferred to &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; on a monthly basis for additional analysis enabling &lt;b&gt;TransactionHistory&lt;/b&gt; to stay reasonably small and maintain current data only. &lt;br /&gt;To create the partitions for these tables, the sample performs these operations:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Creates partition function &lt;b&gt;TransactionRangePF1&lt;/b&gt; on the &lt;b&gt;TransactionDate&lt;/b&gt; column of the &lt;b&gt;TransactionHistory&lt;/b&gt; table, so that each partition contains one month of data.   &lt;/li&gt;&lt;li&gt; Creates partition scheme &lt;b&gt;TransactionsPS1&lt;/b&gt; to map the partitions to filegroups. In this sample, all partitions reside on the same filegroup.  &lt;/li&gt;&lt;li&gt; Drops and re-creates the &lt;b&gt;TransactionHistory&lt;/b&gt; table specifying the partition scheme &lt;b&gt;TransactionsPS1&lt;/b&gt; as the location for the table.  &lt;/li&gt;&lt;li&gt; Creates partition function &lt;b&gt;TransactionRangePF2&lt;/b&gt; on the &lt;b&gt;TransactionDate&lt;/b&gt; column of the &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; table.   &lt;/li&gt;&lt;li&gt; Creates partition scheme &lt;b&gt;TransactionsPS2&lt;/b&gt; to map the partitions to filegroups. In this sample, all partitions reside on the same filegroup.  &lt;/li&gt;&lt;li&gt; Drops and re-creates the &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; table specifying the partition scheme &lt;b&gt;TransactionsPS2&lt;/b&gt; as the location for the table.  &lt;/li&gt;&lt;li&gt; Bulk inserts data into the two tables.  The transfer of monthly &amp;quot;chunks&amp;quot; of data between the tables is performed by switching partitions between the two tables. This typically takes just seconds, instead of minutes or hours in earlier releases, because it is a metadata operation only instead of a physical relocation of the data. Partition switching is demonstrated in the SlidingWindow sample. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, perform the following tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure you include the following components:  &lt;/li&gt;&lt;li&gt; Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the PartitioningScript sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the PartitioningScript sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, open the file PartitionAW.sql. The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\\Administration\Partitioning\Scripts. Click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:30:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_PartitioningScript 20080611123053A</guid></item><item><title>Updated Wiki: SS2008!Readme_FileGroups</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_FileGroups&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_FileGroups 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 purpose of this sample is to demonstrate filegroup and file capabilities in SQL Server. For more information, see &amp;quot;Designing Files and Filegroups&amp;quot; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;Filegroups allow files to be grouped together for administrative and data allocation/placement purposes. For example, filegroups allow placement of objects on specific physical disks, which can improve performance due to parallel disk I/O searching. Also, files and filegroups can be backed up and restored individually, which can increase the speed of recovery by allowing you to restore only damaged files without restoring the rest of the database. &lt;br /&gt;This sample creates:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The &lt;b&gt;WorkOrderGroup&lt;/b&gt; filegroup and the data file &lt;b&gt;WorkOrders&lt;/b&gt; and then moves the &lt;b&gt;Production.WorkOrder&lt;/b&gt; and &lt;b&gt;Production.WorkOrderRouting&lt;/b&gt; tables to that filegroup in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;TransactionHistoryGroup&lt;/b&gt; filegroup and data file &lt;b&gt;TransactionHistory&lt;/b&gt; and then moves the &lt;b&gt;TransactionHistory&lt;/b&gt; and &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; tables to that filegroup in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, perform the following tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure you include the following components:  &lt;/li&gt;&lt;li&gt; The Database Engine  &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the CreateFileGroups.sql Transact-SQL script that creates files and filegroups in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Running the CreateFilegroups Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open the file CreateFileGroups.sql, located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\FileGroups folder, and click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:29:39 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_FileGroups 20080611122939A</guid></item><item><title>Updated Wiki: SS2005!Readme_FileGroups</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Readme_FileGroups&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_FileGroups
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The purpose of this sample is to demonstrate filegroup and file capabilities in Microsoft SQL Server 2005. For information about this feature, refer to the topic, &amp;quot;Designing Files and Filegroups&amp;quot; in SQL Server Books Online.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;Filegroups allow files to be grouped together for administrative and data allocation/placement purposes. For example, filegroups allow placement of objects on specific physical disks, which can improve performance due to parallel disk I/O searching. Also, files and filegroups can be backed up and restored individually, which can increase the speed of recovery by allowing you to restore only damaged files without restoring the rest of the database. &lt;br /&gt;This sample creates:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The &lt;b&gt;WorkOrderGroup&lt;/b&gt; filegroup and the data file &lt;b&gt;WorkOrders&lt;/b&gt; and then moves the &lt;b&gt;Production.WorkOrder&lt;/b&gt; and &lt;b&gt;Production.WorkOrderRouting&lt;/b&gt; tables to that filegroup in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.  &lt;/li&gt;&lt;li&gt; The &lt;b&gt;TransactionHistoryGroup&lt;/b&gt; filegroup and data file &lt;b&gt;TransactionHistory&lt;/b&gt; and then moves the &lt;b&gt;TransactionHistory&lt;/b&gt; and &lt;b&gt;TransactionHistoryArchive&lt;/b&gt; tables to that filegroup in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;Transact-SQL&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running the 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; 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; (OLTP) sample database  &lt;/li&gt;&lt;li&gt; SQL Server Engine samples  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the &lt;b&gt;CreateFileGroups.sql&lt;/b&gt; Transact-SQL script that creates files and filegroups in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Running the CreateFilegroups Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open the file &lt;b&gt;CreateFileGroups.sql&lt;/b&gt; script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\FileGroups\Scripts folder, and click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:29:00 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_FileGroups 20080611122900A</guid></item><item><title>Updated Wiki: SS2008!Readme_Alerts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_Alerts&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Alerts 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 purpose of the Alerts sample is to demonstrate the alert capabilities of SQL Server. For more information, see &amp;quot;Defining Alerts&amp;quot; in SQL Server Books Online. &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. 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;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample script file creates SQL Server Agent alerts in SQL Server.&lt;br /&gt;After the execution of this script you will find new alerts added to the alerts collection. You can examine them in SQL Server Management Studio or by calling  sp_help_alert  stored procedure.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, perform the following tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure you include the following components:  &lt;/li&gt;&lt;li&gt; The Database Engine  &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the Alerts sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Running the Alerts Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From Management Studio, open the agent&lt;i&gt;sample&lt;/i&gt;alerts.sql script. The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\Alerts\Scripts.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:28:31 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_Alerts 20080611122831A</guid></item><item><title>Updated Wiki: SS2005!Readme_Alerts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Readme_Alerts&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Alerts
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The purpose of the &lt;b&gt;Alerts&lt;/b&gt; sample is to demonstrate the alert capabilities of Microsoft SQL Server 2005. For information about this new feature, refer to the topic, &amp;quot;Defining Alerts&amp;quot; in SQL Server Books Online. &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications should not be connected to or used with your production SQL Server database without the permission of the system administrator. &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;This sample script file creates SQL Agent alerts in Microsoft SQL Server 2005.&lt;br /&gt;After the execution of this script you will find new alerts added to the alerts collection.  You could examine them in Management Studio or by calling sp&lt;i&gt;help&lt;/i&gt;alert stored procedure.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;Transact-SQL&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; Database Engine  &lt;/li&gt;&lt;li&gt; SQL Server Management Studio  &lt;/li&gt;&lt;li&gt; SQL Server Engine samples  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to run the &lt;b&gt;Alerts&lt;/b&gt; sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
Running the Alerts Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open the &lt;b&gt;agent&lt;i&gt;sample&lt;/i&gt;alerts.sql&lt;/b&gt; script. The default installation directory is &lt;i&gt;drive&lt;/i&gt;:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\Alerts\Scripts.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Tasks
&lt;/h6&gt;&lt;i&gt;Installing 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:27:56 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_Alerts 20080611122756A</guid></item><item><title>Updated Wiki: SS2008!Readme_AdventureWorksScripts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_AdventureWorksScripts&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_AdventureWorksScripts 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;In SQL Server, scripts are available in SQLServerEngineSamples.msi that provide two alternatives to using the schemas in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;In SQL Server, tables and other schema-scoped objects are contained in schemas, and the schemas are owned by users. In &lt;b&gt;AdventureWorks&lt;/b&gt;, five schemas are used to contain schema-scoped objects that are based on business functionality. For example, customer and sales-related objects are contained in the &lt;b&gt;Sales&lt;/b&gt; schema; employee-related objects are contained in the &lt;b&gt;HumanResources&lt;/b&gt; schema, and so on. For more information, see &amp;quot;Schemas in AdventureWorks&amp;quot; in SQL Server Books Online.&lt;br /&gt;The addition of schemas introduces changes to the way in which you access tables and other schema-scoped objects. To access objects in a schema other than the default schema (&lt;b&gt;DB&lt;/b&gt;), at a minimum, a two-part identifier in the form &lt;i&gt;schema&lt;/i&gt;name&lt;i&gt;&lt;b&gt;.&lt;/b&gt;&lt;/i&gt;object&lt;i&gt;name&lt;/i&gt; must be specified. This is true for all DDL and DML statements that reference schema-scoped objects.&lt;br /&gt;The scripts included in this sample provide alternatives to working with schema-scoped objects. One alternative transfers all schema-scoped objects to the &lt;b&gt;dbo&lt;/b&gt; schema and the other creates synonyms for each schema-scoped object in the &lt;b&gt;dbo&lt;/b&gt; schema. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The &lt;b&gt;AdventureWorks&lt;/b&gt; scripts use the following features of the Database Engine.&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;  Database Engine &lt;/td&gt;&lt;td&gt; Schema DDL  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Database Engine &lt;/td&gt;&lt;td&gt; Synonyms &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, perform the following tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure you include the following components:  &lt;/li&gt;&lt;li&gt; The Database Engine  &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Transferring Objects to the dbo Schema
&lt;/h3&gt;The AlterSchemaToDbo.sql script transfers every schema-scoped object in &lt;b&gt;AdventureWorks&lt;/b&gt; to the &lt;b&gt;dbo&lt;/b&gt; schema. After this script has been run, users who have a default schema of &lt;b&gt;dbo&lt;/b&gt; will not have to use a two-part identifier when they reference these objects in DDL and DML statements.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  The code examples and samples provided with SQL Server will not run after the AlterSchemaToDbo.sql is executed unless the schema names specified in the code are replaced with &lt;b&gt;dbo&lt;/b&gt; or removed.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The AlterSchemaFromDbo.sql script transfers (returns) the objects from the &lt;b&gt;dbo&lt;/b&gt; schema to the schemas they were in before running the AlterSchemaToDbo.sql script.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Running the Scripts to Transfer Objects to and from the dbo Schema
&lt;/h5&gt;The following procedure shows how to run the Transact-SQL script that transfers &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped objects to the &lt;b&gt;dbo&lt;/b&gt; schema. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the AlterSchemaToDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file AlterSchemaToDbo.sql script located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.The following procedure shows how to run the Transact-SQL script that returns &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped objects from the &lt;b&gt;dbo&lt;/b&gt; schema to their original schemas. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h6&gt;
To run the AlterSchemaFromDbo scripts
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file AlterSchemaFromDbo.sql script located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Using Synonyms
&lt;/h3&gt;A synonym is an alternative name given to a schema-scoped object. The synonym is specified instead of the base object in DDL and DML statements. &lt;br /&gt;The CreateSynonymsDbo.sql script creates a synonym for each schema-scoped object in &lt;b&gt;AdventureWorks&lt;/b&gt;. The synonym name is the same as the base object name, but uses the &lt;b&gt;dbo&lt;/b&gt; schema. For example, the synonym for *HumanResources.Department *is &lt;b&gt;dbo.Department&lt;/b&gt;. &lt;br /&gt;Using synonyms has the following advantages:&lt;br /&gt; &lt;br /&gt;* &lt;br /&gt;    If &lt;b&gt;dbo&lt;/b&gt; is the default schema, a two-part identifier is not needed to specify these objects in DDL and DML statements.   &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; The code examples and samples provided with SQL Server can be used without modification.  The DropSynonymsDbo.sql script drops the synonyms that are created by the CreateSynonymsDbo.sql script. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h5&gt;
Running the Synonym Scripts
&lt;/h5&gt;The following procedure shows how to run the Transact-SQL script that creates synonyms in the &lt;b&gt;dbo&lt;/b&gt; schema for each &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped object. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the CreateSynonymsDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file CreateSynonymsDbo.sql script located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.The following procedure shows how to run the Transact-SQL script that removes the synonyms that are created by the CreateSynonymsDbo.sql script from the database. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h6&gt;
To run the DropSynonymsDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file DropSynonymsDbo.sql script located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Removing the Scripts
&lt;/h3&gt;Use the following procedure to remove one or more scripts that are included in this sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the scripts
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Windows Explorer, locate the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\AdventureWorks\Scripts folder, right-click the script name and click &lt;b&gt;Delete&lt;/b&gt;. &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:27:36 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_AdventureWorksScripts 20080611122736A</guid></item><item><title>Updated Wiki: SS2005!Readme_AdventureWorksScripts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Readme_AdventureWorksScripts&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_AdventureWorksScripts
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;In Microsoft SQL Server 2005, scripts are available in SQLServerEngineSamples.msi that provide two alternatives to using the schemas in the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;In SQL Server 2005, tables and other schema-scoped objects are contained in schemas, and the schemas are owned by users. In &lt;b&gt;AdventureWorks&lt;/b&gt;, five schemas are used to contain schema-scoped objects that are based on business functionality. For example, customer and sales-related objects are contained in the &lt;b&gt;Sales&lt;/b&gt; schema; employee-related objects are contained in the &lt;b&gt;HumanResources&lt;/b&gt; schema, and so on. For more information, see &amp;quot;Schemas in AdventureWorks&amp;quot; in SQL Server Books Online.&lt;br /&gt;The addition of schemas introduces changes to the way in which you access tables and other schema-scoped objects. To access objects in a schema other than the default schema (&lt;b&gt;DB&lt;/b&gt;), at a minimum, a two-part identifier in the form &lt;i&gt;schema&lt;/i&gt;name&lt;i&gt;&lt;b&gt;.&lt;/b&gt;&lt;/i&gt;object&lt;i&gt;name&lt;/i&gt; must be specified. This is true for all DDL and DML statements that reference schema-scoped objects.&lt;br /&gt;The scripts included in this sample provide alternatives to working with schema-scoped objects. One alternative transfers all schema-scoped objects to the &lt;b&gt;dbo&lt;/b&gt; schema and the other creates synonyms for each schema-scoped object in the &lt;b&gt;dbo&lt;/b&gt; schema. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The &lt;b&gt;AdventureWorks&lt;/b&gt; scripts use the following features of the SQL Server 2005 Database Engine.&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;  Database Engine &lt;/td&gt;&lt;td&gt; Schema DDL  &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Database Engine &lt;/td&gt;&lt;td&gt; Synonyms &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run either of the scripts included in this sample, install SQL Server 2005 and make sure you include the following components:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; The AdventureWorks database which is included with SQL Server 2005, and is also available at the SQL Server Developer&lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt; The SQL Server 2005 Database Engine samples. These samples are included with SQL Server 2005. You can download the latest version of the samples at the SQL Server Developer &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Transferring Objects to the dbo Schema
&lt;/h3&gt;The AlterSchemaToDbo.sql script transfers every schema-scoped object in &lt;b&gt;AdventureWorks&lt;/b&gt; to the &lt;b&gt;dbo&lt;/b&gt; schema. After this script has been run, users who have a default schema of &lt;b&gt;dbo&lt;/b&gt; will not have to use a two-part identifier when they reference these objects in DDL and DML statements.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  The code examples and samples provided with SQL Server 2005 will not run after the AlterSchemaToDbo.sql is executed unless the schema names specified in the code are replaced with &lt;b&gt;dbo&lt;/b&gt; or removed.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;The AlterSchemaFromDbo.sql script transfers (returns) the objects from the &lt;b&gt;dbo&lt;/b&gt; schema to the schemas they were in before running the AlterSchemaToDbo.sql script.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Running the Scripts to Transfer Objects to and from the dbo Schema
&lt;/h5&gt;The following procedure shows how to run the Transact-SQL script that transfers &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped objects to the &lt;b&gt;dbo&lt;/b&gt; schema. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the AlterSchemaToDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file AlterSchemaToDbo.sql script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.The following procedure shows how to run the Transact-SQL script that returns &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped objects from the &lt;b&gt;dbo&lt;/b&gt; schema to their original schemas. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h6&gt;
To run the AlterSchemaFromDbo scripts
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file AlterSchemaFromDbo.sql script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Using Synonyms
&lt;/h3&gt;A synonym is an alternative name given to a schema-scoped object. The synonym is specified instead of the base object in DDL and DML statements. &lt;br /&gt;The CreateSynonymsDbo.sql script creates a synonym for each schema-scoped object in &lt;b&gt;AdventureWorks&lt;/b&gt;. The synonym name is the same as the base object name, but uses the &lt;b&gt;dbo&lt;/b&gt; schema. For example, the synonym for *HumanResources.Department *is &lt;b&gt;dbo.Department&lt;/b&gt;. &lt;br /&gt;Using synonyms has the following advantages:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; If &lt;b&gt;dbo&lt;/b&gt; is the default schema, a two-part identifier is not needed to specify these objects in DDL and DML statements.   &lt;/li&gt;&lt;li&gt; The code examples and samples provided with SQL Server 2005 can be used without modification.  The DropSynonymsDbo.sql script drops the synonyms that are created by the CreateSynonymsDbo.sql script. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h5&gt;
Running the Synonym Scripts
&lt;/h5&gt;The following procedure shows how to run the Transact-SQL script that creates synonyms in the &lt;b&gt;dbo&lt;/b&gt; schema for each &lt;b&gt;AdventureWorks&lt;/b&gt; schema-scoped object. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the CreateSynonymsDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file CreateSynonymsDbo.sql script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.The following procedure shows how to run the Transact-SQL script that removes the synonyms that are created by the CreateSynonymsDbo.sql script from the database. &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h6&gt;
To run the DropSynonymsDbo script
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In SQL Server Management Studio, open the file DropSynonymsDbo.sql script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\AdventureWorks\Scripts folder, and then click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Removing the Scripts
&lt;/h3&gt;Use the following procedure to remove one or more scripts that are included in this sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the scripts
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Windows Explorer, locate the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\AdventureWorks\Scripts folder, right-click the script name and click &lt;b&gt;Delete&lt;/b&gt;. &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:26:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme_AdventureWorksScripts 20080611122657A</guid></item><item><title>Updated Wiki: SS2008!Event Notifications Sample</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Event Notifications Sample&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Event Notifications 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 event notification sample (EventNotificationSample.sql) provides an example of how event notifications can be used in an OLTP database application. For more information, see &lt;b&gt;Event Notifications (Database Engine)&lt;/b&gt;. &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications should not be connected to or used with your production SQL Server database without the permission of the system administrator. &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;Event notifications can be used to monitor and respond to database activity. EventNotificationSample.sql monitors the following kinds of events: &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;CreateDatabaseNotification&lt;/b&gt; event notification monitors when databases are created and dropped on the server instance.  &lt;/li&gt;&lt;li&gt;&lt;b&gt;AuditLoginLogoutNotification&lt;/b&gt; event notification monitors when logins, logouts, and failed logins occur on the server instance.  The event notifications send XML data about these events to the Microsoft Service Broker service specified in the sample. The sample also defines a queue to receive the messages and a route that specifies the service address; in this case, the address is the local database. A WAITFOR clause, which is enclosed in commenting characters, instructs the server to wait 60 seconds until the service receives the message and casts it as &lt;b&gt;XML&lt;/b&gt;. Additional scripts, which are also enclosed in commenting characters, test the event notifications by causing the events on which they are created to occur on the server instance.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, follow these steps:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure that you include the following components:  &lt;/li&gt;&lt;li&gt; Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and Database Engine samples available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to install and run the event notification sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the event notification sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open EventNotificationSample.sql. The default installation directory is C:\Program Files\Microsoft SQL Server\100\Samples\Engine\\Administration\EventNotifications\Scripts\.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:26:18 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Event Notifications Sample 20080611122618A</guid></item><item><title>Updated Wiki: SS2005!Event Notifications Sample</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Event Notifications Sample&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Event Notifications Sample
&lt;/h2&gt; &lt;br /&gt; 6/10/2008 4:38:07 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The event notification sample (EventNotificationSample.sql) provides an example of how event notifications can be used in an OLTP database application. For more information, see &lt;b&gt;Event Notifications (Database Engine)&lt;/b&gt;. &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Important:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications should not be connected to or used with your production SQL Server database without the permission of the system administrator. &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;Event notifications can be used to monitor and respond to database activity. EventNotificationSample.sql monitors the following kinds of events: &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;CreateDatabaseNotification&lt;/b&gt; event notification monitors when databases are created and dropped on the server instance.  &lt;/li&gt;&lt;li&gt;&lt;b&gt;AuditLoginLogoutNotification&lt;/b&gt; event notification monitors when logins, logouts, and failed logins occur on the server instance.  The event notifications send XML data about these events to the Microsoft SQL Server 2005 Service Broker service specified in the sample. The sample also defines a queue to receive the messages and a route that specifies the service address; in this case, the address is the local database. A WAITFOR clause, which is enclosed in commenting characters, instructs the server to wait 60 seconds until the service receives the message and casts it as &lt;b&gt;xml&lt;/b&gt;. Additional scripts, which are also enclosed in commenting characters, test the event notifications by causing the events on which they are created to occur on the server instance.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running this sample, make sure the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server 2005 with the following components:  &lt;/li&gt;&lt;li&gt; SQL Server 2005 Database Engine   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; AdventureWorks (OLTP) sample database which is included with SQL Server 2005, and is also available at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;* &lt;br /&gt;              &lt;br /&gt; SQL Server Database Engine samples (SQLServerSample.msi). These samples are included with SQL Server 2005. You can download the latest version of the samples at the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;Microsoft SQL Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;br /&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt;The following procedure shows how to install and run the event notification sample. &lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To run the event notification sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open EventNotificationSample.sql. The default installation directory is C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\EventNotifications\Scripts\.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Execute&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Tasks
&lt;/h6&gt;&lt;i&gt;Installing Samples&lt;/i&gt;  &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;Event Notifications (Database Engine)&lt;/b&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2005 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 11 Jun 2008 00:25:43 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Event Notifications Sample 20080611122543A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=Home&amp;version=22</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Scripts Product Samples&lt;br /&gt; &lt;br /&gt;This project contains Scripts samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing Scripts 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=MSFTScrptProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Event Notifications Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Event%20Notifications%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Event%20Notifications%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AdventureWorksScripts &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_AdventureWorksScripts&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_AdventureWorksScripts&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Alerts &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Alerts&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Alerts&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; FileGroups &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_FileGroups&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_FileGroups&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; PartitioningScript &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_PartitioningScript&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_PartitioningScript&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SlidingWindow &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_SlidingWindow&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_SlidingWindow&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Snapshot &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Snapshot&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Snapshot&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:25:14 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080611122514A</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=Home&amp;version=21</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 Scripts Product Samples&lt;br /&gt; &lt;br /&gt;&lt;b&gt;SQL Server 2008 RC0&lt;/b&gt; product samples are &lt;a href="/MSFTScrptProdSamples/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 Scripts samples released with Microsoft SQL Server product. Below is the list of these samples. If you are interested in contributing Scripts 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=MSFTScrptProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Event Notifications Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Event%20Notifications%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Event%20Notifications%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AdventureWorksScripts &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_AdventureWorksScripts&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_AdventureWorksScripts&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Alerts &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Alerts&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Alerts&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; FileGroups &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_FileGroups&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_FileGroups&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; PartitioningScript &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_PartitioningScript&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_PartitioningScript&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SlidingWindow &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_SlidingWindow&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_SlidingWindow&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Snapshot &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005%21Readme_Snapshot&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008%21Readme_Snapshot&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:52:05 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080610115205P</guid></item><item><title>UPDATED RELEASE: SQL Server 2008 RC0 (Jun 10, 2008)</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Release/ProjectReleases.aspx?ReleaseId=14280</link><description>&lt;div&gt;
This release contains the SQL Server 2008 RC0 product samples for T-SQL scripting.&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Tue, 10 Jun 2008 23:35:45 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: SQL Server 2008 RC0 (Jun 10, 2008) 20080610113545P</guid></item><item><title>RELEASED: SQL Server 2008 RC0 (Jun 10, 2008)</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Release/ProjectReleases.aspx?ReleaseId=14280</link><description>&lt;div&gt;
This release contains the SQL Server 2008 RC0 product samples for T-SQL scripting.&lt;br&gt;
&lt;/div&gt;</description><author></author><pubDate>Tue, 10 Jun 2008 23:35:45 GMT</pubDate><guid isPermaLink="false">RELEASED: SQL Server 2008 RC0 (Jun 10, 2008) 20080610113545P</guid></item><item><title>NEW POST: Sql Scripts</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Thread/View.aspx?ThreadId=29100</link><description>&lt;div style="line-height: normal;"&gt;Hi all,&lt;br&gt;
i'm updating a new 'commun management' software n i wanna update the database bcoz i added many extra tables.&lt;br&gt;
i did write scripts for all the tables this way:&lt;br&gt;
&lt;br&gt;
Create...........&lt;br&gt;
Drop...........&lt;br&gt;
Alter........&lt;br&gt;
&lt;br&gt;
so our clients would be able to have access to it.&lt;br&gt;
but i have been asked to write other ways script than using 'alter', becoz its like im having the database for the first time and our clients have the older version...&lt;br&gt;
Any Ideas??&lt;br&gt;
&lt;br&gt;
10x in advance
&lt;/div&gt;</description><author>JARON</author><pubDate>Thu, 05 Jun 2008 08:51:01 GMT</pubDate><guid isPermaLink="false">NEW POST: Sql Scripts 20080605085101A</guid></item><item><title>UPDATED WIKI: SS2008!Readme_Snapshot</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2008!Readme_Snapshot&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Snapshot 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 purpose of the &lt;b&gt;DatabaseSnapshot&lt;/b&gt; sample is to demonstrate the database snapshot capabilities of SQL Server. For more information, see &amp;quot;Database Snapshots&amp;quot; in SQL Server Books Online. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A database snapshot is a read-only, static view of a database. This database is called the source database. Each database snapshot is transaction-consistent with the source database at the moment of the snapshot's creation. A snapshot persists until it is explicitly dropped by the database owner. Multiple snapshots can exist on a database. This sample creates a new database snapshot of the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; Transact-SQL&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, perform the following tasks:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Install SQL Server and make sure you include the following components:  &lt;/li&gt;&lt;li&gt; The Database Engine  &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Download the &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) sample database and SQL Server Database Engine samples available at the Microsoft SQL Server &lt;a href="http://go.microsoft.com/fwlink/?linkid=100108" class="externalLink"&gt;Samples and Community Projects Web site&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Installing and Running the Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From Management Studio, open the file CreateDatabaseSnapshot.sql script located in the C:\Program Files\Microsoft SQL Server\100\Samples\Engine\Administration\DatabaseSnapshot\Scripts folder, and click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 20 Feb 2008 07:27:25 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: SS2008!Readme_Snapshot 20080220072725A</guid></item><item><title>UPDATED WIKI: SS2005!Readme_Snapshot</title><link>http://www.codeplex.com/MSFTScrptProdSamples/Wiki/View.aspx?title=SS2005!Readme_Snapshot&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Snapshot
&lt;/h2&gt; &lt;br /&gt; 2/19/2008 11:18:35 PM&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;The purpose of the &lt;b&gt;DatabaseSnapshot&lt;/b&gt; sample is to demonstrate the database snapshot capabilities of Microsoft SQL Server 2005. For information about this new feature, refer to the topic, &amp;quot;Database Snapshots&amp;quot; in SQL Server Books Online. &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A database snapshot is a read-only, static view of a database. This database is called the source database. Each database snapshot is transaction-consistent with the source database at the moment of the snapshot's creation. A snapshot persists until it is explicitly dropped by the database owner. Multiple snapshots can exist on a database. This sample creates a new database snapshot of the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;Transact-SQL&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before running either of the scripts included in 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; 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; (OLTP) sample database  &lt;/li&gt;&lt;li&gt; SQL Server Engine samples  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Installing and Running the Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;From SQL Server Management Studio, open the file &lt;b&gt;CreateDatabaseSnapshot.sql&lt;/b&gt; script located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\DatabaseSnapshot\Scripts folder, and click &lt;b&gt;Execute&lt;/b&gt;. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Wed, 20 Feb 2008 07:27:09 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: SS2005!Readme_Snapshot 20080220072709A</guid></item></channel></rss>