<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SQL Server 2008 R2', 'sample databases', 'SQL Server 11', and 'SQL Server 2011'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+2008+R2,sample+databases,SQL+Server+11,SQL+Server+2011&amp;orTags=0</link><description>Search results matching tags 'SQL Server 2008 R2', 'sample databases', 'SQL Server 11', and 'SQL Server 2011'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQL Server v.Next (Denali) : Installing AdventureWorks2008R2</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/11/09/sql-server-11-denali-installing-adventureworks.aspx</link><pubDate>Tue, 09 Nov 2010 23:45:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:30127</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;After five tries, I've given up trying to install AdventureWorks on machines where Denali exists - even in cases where 2008 or 2008 R2 instances also exist, and when my goal is to install AdventureWorks on earlier releases.&amp;nbsp; The installer crashes before I can even select which instance to use.&lt;br&gt;&lt;/p&gt;

&lt;p&gt;First, I downloaded AdventureWorks2008R2_RTM.exe from CodePlex (which is where &lt;a href="http://msdn.microsoft.com/en-us/library/ms130214%28v=SQL.110%29.aspx" title="http://msdn.microsoft.com/en-us/library/ms130214(v=SQL.110).aspx" target="_blank"&gt;Denali's Books Online&lt;/a&gt; &lt;a href="http://msdn.microsoft.com/en-us/library/bb510407%28v=SQL.110%29.aspx" title="http://msdn.microsoft.com/en-us/library/bb510407(v=SQL.110).aspx" target="_blank"&gt;currently points you&lt;/a&gt;):&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/45907" title="http://msftdbprodsamples.codeplex.com/releases/view/45907" target="_blank"&gt;http://msftdbprodsamples.codeplex.com/releases/view/45907&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ran the EXE, agreed to the license terms, and the next screen was:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img src="http://sqlblog.com/files/folders/30126/download.aspx" height="391" width="622"&gt;&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;(For searchability, here is the error message in plain text):&lt;/p&gt;

&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;---------------------&lt;br&gt;Fatal Error&lt;br&gt;---------------------&lt;br&gt;A fatal error occurred during installation. Details:&lt;br&gt;&lt;br&gt;Failed object initialization (ISupportInitialize.EndInit). An exception occurred in SMO while trying to manage a service. Error at object 'DatabaseSelection' in markup file 'DatabaseInstaller;component/databaseselection.xaml' &lt;br&gt;Line 78 Position 3.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/blockquote&gt;

&lt;p&gt;On five different VMs.&amp;nbsp; My only success with this installer thus far has been on a machine where Denali was not already present.&amp;nbsp; So in my limited sample size, it would seem that something installed with Denali is blocking the sample database installer from succeeding.&lt;/p&gt;

&lt;p&gt;Initially I thought that there would be an easy fix to this scenario: install 2008 R2, then AdventureWorks2008R2, then perform an in-place upgrade to Denali.&amp;nbsp; Unfortunately this won't be possible until much later in the public beta cycle (and maybe not even until the final release), since you can't use the upgrade path in setup when installing Enterprise Evaluation edition (which is the only edition available at this time that is capable of running AdventureWorks functionality - Express won't cut it, though it might be okay for AdventureWorks LT ("Light")). &lt;br&gt;&lt;/p&gt;

&lt;p&gt;So the solution seems pretty straightforward, for now: if you want to play with AdventureWorks, don't install Denali.&amp;nbsp; But what if you want to play with AdventureWorks in Denali?&amp;nbsp; You may be tempted to find and download the script-only install from CodePlex, and it may work, but I am guessing you will have issues when it tries to set up FileStream.&amp;nbsp; So, if you want to install the 2008 R2 version of AdventureWorks (so far I've only tried this for the OLTP database, not other versions such as DW or Lite), you can try the following procedure, which worked for me:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;either install AdventureWorks2008R2 on another server, or wait to install Denali until after you've installed a 2008 R2 instance and installed AdventureWorks2008R2 there;&lt;br&gt;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;take a backup of the AdventureWorks2008R2 database, as follows, replacing &amp;lt;path&amp;gt; with your favorite backup location:
&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="#3300cc"&gt;BACKUP DATABASE&lt;/font&gt; AdventureWorks2008R2 &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#3300cc"&gt;TO DISK&lt;/font&gt; = &lt;font color="#ff0000"&gt;'&amp;lt;path&amp;gt;\AW2008R2.BAK'&lt;/font&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#3300cc"&gt;WITH INIT&lt;/font&gt;, &lt;font color="#3300cc"&gt;COMPRESSION&lt;/font&gt;;&lt;br&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;

(If you need a copy of this backup file, for example if you don't have another server where you can install 2008 R2 without Denali already present, let me know, and I will try to find out the legality of providing it for you.)&lt;br&gt;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;install Denali, if you haven't already, and make sure your Denali instance &lt;a href="http://msftdbprodsamples.codeplex.com/wikipage?title=Database%20Prerequisites%20for%20SQL%20Server%202008R2" title="http://msftdbprodsamples.codeplex.com/wikipage?title=Database%20Prerequisites%20for%20SQL%20Server%202008R2" target="_blank"&gt;meets all of the AdventureWorks prerequisites&lt;/a&gt;; and,&lt;br&gt;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;on the Denali instance, restore the backup with the following command, replacing &amp;lt;path&amp;gt; with your favorite backup location and &amp;lt;DenaliDataFolder&amp;gt; with Denali's data folder:
&lt;blockquote&gt;
&lt;table bgcolor="#eeeeee" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre style="padding:10px 20px;font-size:12px;font-family:consolas,lucida console,courier new,courier;-moz-background-inline-policy:continuous;"&gt;&lt;font color="#3300cc"&gt;RESTORE DATABASE&lt;/font&gt; AdventureWorks2008R2&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#3300cc"&gt;FROM DISK&lt;/font&gt; = &lt;font color="#ff0000"&gt;'&amp;lt;path&amp;gt;\AW2008R2.BAK'&lt;/font&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#3300cc"&gt;WITH&lt;br&gt;    MOVE&lt;/font&gt; &lt;font color="#ff0000"&gt;'AdventureWorks2008R2_Data'&lt;/font&gt; &lt;font color="#3300cc"&gt;TO&lt;/font&gt; &lt;font color="#ff0000"&gt;'&amp;lt;DenaliDataFolder&amp;gt;\AW2008R2.mdf'&lt;/font&gt;,&lt;br&gt;    &lt;font color="#3300cc"&gt;MOVE&lt;/font&gt; &lt;font color="#ff0000"&gt;'AdventureWorks2008R2_Log'&lt;/font&gt;  &lt;font color="#3300cc"&gt;TO&lt;/font&gt; &lt;font color="#ff0000"&gt;'&amp;lt;DenaliDataFolder&amp;gt;\AW2008R2.ldf'&lt;/font&gt;,&lt;br&gt;    &lt;font color="#3300cc"&gt;MOVE &lt;font color="#ff0000"&gt;'FileStreamDocuments2008R2'&lt;/font&gt; TO&lt;/font&gt; &lt;font color="#ff0000"&gt;'&amp;lt;DenaliDataFolder&amp;gt;\FStreamData\'&lt;/font&gt;;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;

(Note that the FileStreamDocuments2008R2 "file" is actually a non-empty folder, and does not show up in either sp_helpfile or sys.files.)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
Now, whether or not this leaves you in a supported state, I'm not sure, and I don't want to be held accountable for the state of your system at this point (or your ability to use every single piece of functionality in AdventureWorks).&amp;nbsp; Not that you should have Denali installed anywhere other than a throwaway VM anyway. &lt;br&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;</description></item></channel></rss>