<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Inna Nill's Weblog</title>
	<atom:link href="http://innanill.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://innanill.wordpress.com</link>
	<description>nanos gigantum humeris insidentes</description>
	<lastBuildDate>Fri, 20 Jun 2008 17:10:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='innanill.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Inna Nill's Weblog</title>
		<link>http://innanill.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://innanill.wordpress.com/osd.xml" title="Inna Nill&#039;s Weblog" />
	<atom:link rel='hub' href='http://innanill.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SQL Server Migration</title>
		<link>http://innanill.wordpress.com/2008/06/20/sql-server-migration/</link>
		<comments>http://innanill.wordpress.com/2008/06/20/sql-server-migration/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 17:10:13 +0000</pubDate>
		<dc:creator>innanill</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://innanill.wordpress.com/?p=5</guid>
		<description><![CDATA[A recent task at work was supposed to be easy but ended up being much more of a headache than I expected. The task: migrate a SQL Server 2000 database to SQL Server 2005 while keeping the 2000 database live. Ahhh, Microsoft&#8230; I should have known it wouldn&#8217;t be easy. Other restrictions that made this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=innanill.wordpress.com&amp;blog=4028576&amp;post=5&amp;subd=innanill&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A recent task at work was supposed to be easy but ended up being much more of a headache than I expected. The task: migrate a SQL Server 2000 database to SQL Server 2005 while keeping the 2000 database live. Ahhh, Microsoft&#8230; I should have known it wouldn&#8217;t be easy.</p>
<p>Other restrictions that made this a challenge:</p>
<ul>
<li>I only have SQL Server 2005 Express on my local computer.</li>
<li>I have limited access to the SQL Server 2005 database server that I need to migrate to.</li>
</ul>
<p>The requirement to keep the 2000 db live meant that I could not detach it.</p>
<p>My first thought was to follow these directions from Microsoft: <a href="http://msdn.microsoft.com/en-us/library/ms190436.aspx">http://msdn.microsoft.com/en-us/library/ms190436.aspx</a>.<br />
I didn&#8217;t follow the directions exactly: I did the backup on the 2000 server and then asked someone who had admin privileges to copy the backup file to the other server (remember, I don&#8217;t have access). But, when I tried to restore, I got an error:</p>
<p><code>System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'mydbname' database. (Microsoft.SqlServer.Express.Smo).</code></p>
<p>My second try was to follow these directions, also from Microsoft: <a href="http://msdn.microsoft.com/en-us/library/ms188664.aspx">http://msdn.microsoft.com/en-us/library/ms188664.aspx</a>.<br />
However, I don&#8217;t have the copy wizard on my 2005 Express, so no fancy wizards for me&#8230;</p>
<p>Last and final attempt came from <a href="http://blog.sqlauthority.com/2007/04/30/sql-server-fix-error-msg-3159-level-16-state-1-line-1-msg-3013-level-16-state-1-line-1/" target="_blank">this very useful article in Pinal Dave&#8217;s blog</a> and although the error he describes is different than mine, it was the perfect solution. In SQL Server 2005, use the following:</p>
<pre><code style="font-size:12px;"><span style="color:#0000ff;">ALTER DATABASE </span><span style="color:#000000;">AdventureWorks
</span><span style="color:#0000ff;">SET </span><span style="color:#000000;">SINGLE_USER </span><span style="color:#0000ff;">WITH 
ROLLBACK </span><span style="color:#000000;">IMMEDIATE</span></code>

<code style="font-size:12px;"><span style="color:#0000ff;">RESTORE DATABASE </span><span style="color:#000000;">AdventureWorks
    </span><span style="color:#0000ff;">FROM DISK = </span><span style="color:#ff0000;">‘C:BackupAdventureworks.bak’
            </span><span style="color:#0000ff;">WITH </span><span style="color:#000000;">MOVE </span><span style="color:#ff0000;">‘AdventureWorks_Data’ </span><span style="color:#0000ff;">TO </span><span style="color:#ff0000;">‘C:\Data\datafile.mdf’</span><span style="color:#808080;">,
            </span><span style="color:#000000;">MOVE </span><span style="color:#ff0000;">‘AdventureWorks_Log’ </span><span style="color:#0000ff;">TO </span><span style="color:#ff0000;">‘C:\Data\logfile.ldf’</span><span style="color:#808080;">,
            </span><span style="color:#ff00ff;">REPLACE</span></code></pre>
<p>Use your own database name, data filenames, and paths of course. If you don&#8217;t know the names to add to the MOVE command, follow Kevin Jansz&#8217;s suggestion from the same blog (see comment #7) to use the following command:</p>
<p><code style="font-size:12px;">RESTORE FILELISTONLY FROM DISK=’C:\BackupAdventureworks.bak’<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/innanill.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/innanill.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/innanill.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/innanill.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/innanill.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=innanill.wordpress.com&amp;blog=4028576&amp;post=5&amp;subd=innanill&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://innanill.wordpress.com/2008/06/20/sql-server-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98fe7770db75a67afbb6a09a8b326ead?s=96&#38;d=identicon" medium="image">
			<media:title type="html">innanill</media:title>
		</media:content>
	</item>
		<item>
		<title>Why this blog.</title>
		<link>http://innanill.wordpress.com/2008/06/20/hello-world/</link>
		<comments>http://innanill.wordpress.com/2008/06/20/hello-world/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 11:40:11 +0000</pubDate>
		<dc:creator>innanill</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[One never knows how to begin a first post, so I won&#8217;t have much to say here, except to say that this blog is my attempt to stand on the shoulders of giants in the computing and blogging world. Suffice to say that any time I need to find some information online, the most useful [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=innanill.wordpress.com&amp;blog=4028576&amp;post=1&amp;subd=innanill&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One never knows how to begin a first post, so I won&#8217;t have much to say here, except to say that this blog is my attempt to <a href="http://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants" target="_blank">stand on the shoulders of giants </a>in the computing and blogging world.</p>
<p>Suffice to say that any time I need to find some information online, the most useful is generally in other peoples&#8217; blogs, answers to questions, and comments. But it&#8217;s scattered, and I often find that I spend a lot of time putting it all together.</p>
<p>This blog is my attempt to do that, and hopefully help some others in the process.</p>
<p> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/innanill.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/innanill.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/innanill.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/innanill.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/innanill.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=innanill.wordpress.com&amp;blog=4028576&amp;post=1&amp;subd=innanill&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://innanill.wordpress.com/2008/06/20/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/98fe7770db75a67afbb6a09a8b326ead?s=96&#38;d=identicon" medium="image">
			<media:title type="html">innanill</media:title>
		</media:content>
	</item>
	</channel>
</rss>
