<?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/"
	>

<channel>
	<title>SupportSages &#187; database backup restoration</title>
	<atom:link href="http://www.supportsages.com/blog/tag/database-backup-restoration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 02 Sep 2010 18:51:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MSSQL &#8211; Two common issues while restoring a backup and it&#8217;s solutions</title>
		<link>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/</link>
		<comments>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 02:35:54 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup restoration]]></category>
		<category><![CDATA[database backup restoration]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[restoration]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=625</guid>
		<description><![CDATA[There are two most common issues while restoring the database (usually ending in .bak format).


<strong>First error</strong>
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing '<strong>user_database</strong>' database. (Microsoft.SqlServer.Express.Smo)


<strong>Solution for First error</strong>
	<li>Connect to the database server</li>
<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png"><img class="alignnone size-full wp-image-626" title="Logging in" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" alt="Logging in to the web server" width="368" height="273" /></a>
	<li>Go to the restore option and select Restore Database

<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png"><img class="alignnone size-full wp-image-627" title="Screenshot-1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" alt="" /></a></li>
	<li>On the Restore page that loads up, make sure that the <strong>Destination for restore</strong> has the database you want to restore and in the<strong> Source for Restore</strong>, choose<strong> From device:</strong> ...]]></description>
			<content:encoded><![CDATA[<p>There are two most common issues while restoring the database (usually ending in .bak format).</p>
<p><strong>First error</strong><br />
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing &#8216;<strong>user_database</strong>&#8216; database. (Microsoft.SqlServer.Express.Smo)</p>
<p><strong>Solution for First error</strong></p>
<li>Connect to the database server</li>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" class="thickbox no_icon" rel="gallery-625" title="Logging in"><img class="alignnone size-full wp-image-626" title="Logging in" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" alt="Logging in to the web server" width="368" height="273" /></a></p>
<li>Go to the restore option and select Restore Database
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-1"><img class="alignnone size-full wp-image-627" title="Screenshot-1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" alt="" /></a></li>
<li>On the Restore page that loads up, make sure that the <strong>Destination for restore</strong> has the database you want to restore and in the<strong> Source for Restore</strong>, choose<strong> From device:</strong> And browse by clicking<strong> [..] </strong>and Add the file location there, the location where your database backup resides. You may need to browse the backup. If you get permission denied, copy the bak in the MSSQL folder.
<p><div id="attachment_629" class="wp-caption alignnone" style="width: 610px"><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-2.png" class="thickbox no_icon" rel="gallery-625" title="Attaching the database backup file"><img class="size-medium wp-image-629 " title="Attaching the database backup file" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-2.png" alt="Attaching the database backup file" width="600" height="252" /></a><p class="wp-caption-text">Attaching the database backup file</p></div></li>
<li>Restore it. Make sure that the <strong>Restore Checkbox is selected</strong>. And Click <strong>OK</strong>. And get ready for the error <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-3.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-3"><img class="alignnone size-full wp-image-630" title="Screenshot-3" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-3.png" alt="" /></a></li>
<li>Here comes the first error<strong>System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing &#8216;user_database&#8217; database. (Microsoft.SqlServer.Express.Smo)</strong><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-5.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-5"><img class="alignnone size-full wp-image-631" title="Screenshot-5" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-5.png" alt="" /></a><br />
And the solution is to go to <strong>Options </strong>-&gt; <strong>Overwrite Existing Database</strong> . But if you aren&#8217;t so lucky, you will be welcomed by another error as seen below. where it&#8217;s solution is to edit the path from D:\ to C:\ or whichever Drive, where your MSSQL is installed.</p>
<p><strong>System.Data.SqlClient.SqlError: Directory lookup for the file &#8220;D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\user_database.mdf&#8221; failed with the operating system error 3(The system cannot find the path specified.). (Microsoft.SqlServer.Express.Smo)</strong></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-6.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-6"><img class="alignnone size-full wp-image-632" title="Screenshot-6" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-6.png" alt="" /></a></li>
<li>Both THE Solutions are in a single screen shot. The final screenshot <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-4.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-4"><img class="alignnone size-full wp-image-633" title="Screenshot-4" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-4.png" alt="" /></a></li>
<li>
Just edit D:\ProgramFiles\Microsoft&#8230; to C:\ProgramFiles\Microsoft or whichever directory where you installed the MSSQL server. Don&#8217;t keep database server on your system drive C: though.</li>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=MSSQL+-+Two+common+issues+while+restoring+a+backup+and+it%27s+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F625" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=MSSQL+-+Two+common+issues+while+restoring+a+backup+and+it%27s+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F625" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
