<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: SQL SERVER &#8211; FIX : Error 3154: The backup set holds a backup of a database other than the existing database</title>
	<atom:link href="http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:36:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: straton nahimana</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-250454</link>
		<dc:creator><![CDATA[straton nahimana]]></dc:creator>
		<pubDate>Thu, 09 Feb 2012 14:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-250454</guid>
		<description><![CDATA[Thanks you are a star...]]></description>
		<content:encoded><![CDATA[<p>Thanks you are a star&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-246476</link>
		<dc:creator><![CDATA[Pradeep]]></dc:creator>
		<pubDate>Wed, 01 Feb 2012 07:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-246476</guid>
		<description><![CDATA[Execellent one..]]></description>
		<content:encoded><![CDATA[<p>Execellent one..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rubi86</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-243561</link>
		<dc:creator><![CDATA[Rubi86]]></dc:creator>
		<pubDate>Wed, 25 Jan 2012 17:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-243561</guid>
		<description><![CDATA[Thanks, it save my life!]]></description>
		<content:encoded><![CDATA[<p>Thanks, it save my life!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ER</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-242480</link>
		<dc:creator><![CDATA[ER]]></dc:creator>
		<pubDate>Mon, 23 Jan 2012 05:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-242480</guid>
		<description><![CDATA[worked perfectly! thanks Pidal!]]></description>
		<content:encoded><![CDATA[<p>worked perfectly! thanks Pidal!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jean</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-230693</link>
		<dc:creator><![CDATA[jean]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 15:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-230693</guid>
		<description><![CDATA[thank you]]></description>
		<content:encoded><![CDATA[<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halit</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-202668</link>
		<dc:creator><![CDATA[halit]]></dc:creator>
		<pubDate>Wed, 23 Nov 2011 05:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-202668</guid>
		<description><![CDATA[Thanks it worked]]></description>
		<content:encoded><![CDATA[<p>Thanks it worked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohammad usman shad</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-170037</link>
		<dc:creator><![CDATA[mohammad usman shad]]></dc:creator>
		<pubDate>Tue, 20 Sep 2011 18:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-170037</guid>
		<description><![CDATA[u r a genious sir...
live long n happy life
:)]]></description>
		<content:encoded><![CDATA[<p>u r a genious sir&#8230;<br />
live long n happy life<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-167616</link>
		<dc:creator><![CDATA[Lea]]></dc:creator>
		<pubDate>Mon, 12 Sep 2011 20:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-167616</guid>
		<description><![CDATA[Thanks for the GUI (ie novice aka hack) user consideration, Arjun. Very helpful.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the GUI (ie novice aka hack) user consideration, Arjun. Very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sta</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-158200</link>
		<dc:creator><![CDATA[Sta]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 07:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-158200</guid>
		<description><![CDATA[Why was SQL SMS not answering me what to do with target database?]]></description>
		<content:encoded><![CDATA[<p>Why was SQL SMS not answering me what to do with target database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamezu</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-149492</link>
		<dc:creator><![CDATA[jamezu]]></dc:creator>
		<pubDate>Wed, 20 Jul 2011 03:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-149492</guid>
		<description><![CDATA[Thanks
For me it worked with the WITH MOVE clause

RESTORE DATABASE [XXX]
FROM DISK = &#039;D:\XXX.bak&#039;
WITH MOVE XXX&#039; TO N&#039;D:\MSSQL\MSSQL.2\MSSQL\DATA\XXX.mdf&#039;
,  MOVE N&#039;XXX_log&#039; TO N&#039;D:\MSSQL\MSSQL.2\MSSQL\DATA\XXX.ldf&#039;
,  NOUNLOAD,  REPLACE,  STATS = 10

Cheers]]></description>
		<content:encoded><![CDATA[<p>Thanks<br />
For me it worked with the WITH MOVE clause</p>
<p>RESTORE DATABASE [XXX]<br />
FROM DISK = &#8216;D:\XXX.bak&#8217;<br />
WITH MOVE XXX&#8217; TO N&#8217;D:\MSSQL\MSSQL.2\MSSQL\DATA\XXX.mdf&#8217;<br />
,  MOVE N&#8217;XXX_log&#8217; TO N&#8217;D:\MSSQL\MSSQL.2\MSSQL\DATA\XXX.ldf&#8217;<br />
,  NOUNLOAD,  REPLACE,  STATS = 10</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bent Pedersen</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-146360</link>
		<dc:creator><![CDATA[Bent Pedersen]]></dc:creator>
		<pubDate>Wed, 06 Jul 2011 10:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-146360</guid>
		<description><![CDATA[Thank you, this was a huge help :)

I was trying to restore a customers database and they only had a .bak file, so this solved the problem :D]]></description>
		<content:encoded><![CDATA[<p>Thank you, this was a huge help :)</p>
<p>I was trying to restore a customers database and they only had a .bak file, so this solved the problem :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sridhar Jammalamadaka</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-145325</link>
		<dc:creator><![CDATA[Sridhar Jammalamadaka]]></dc:creator>
		<pubDate>Sat, 02 Jul 2011 15:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-145325</guid>
		<description><![CDATA[Thanks a lot. It was of great help to me.]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot. It was of great help to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haroon</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-144294</link>
		<dc:creator><![CDATA[Haroon]]></dc:creator>
		<pubDate>Tue, 28 Jun 2011 00:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-144294</guid>
		<description><![CDATA[Thanks]]></description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haneen</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-144182</link>
		<dc:creator><![CDATA[haneen]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 12:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-144182</guid>
		<description><![CDATA[i read it lee .. thx]]></description>
		<content:encoded><![CDATA[<p>i read it lee .. thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergioalfredoag</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140768</link>
		<dc:creator><![CDATA[sergioalfredoag]]></dc:creator>
		<pubDate>Mon, 13 Jun 2011 18:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140768</guid>
		<description><![CDATA[Thank you so much!]]></description>
		<content:encoded><![CDATA[<p>Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uhai</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140663</link>
		<dc:creator><![CDATA[Uhai]]></dc:creator>
		<pubDate>Mon, 13 Jun 2011 05:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140663</guid>
		<description><![CDATA[Hi Pinal,

1. I have 30 GB database,  this database contain 3 mdf files and 1 log file. It’s possible to merge 1 mdf files. if possible how we can do it.

2.My drive free space contain 70 GB while i Restore 30 GB database It&#039;s required nearly required 82 GB why it&#039;s happen

Please guide on this.............]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>1. I have 30 GB database,  this database contain 3 mdf files and 1 log file. It’s possible to merge 1 mdf files. if possible how we can do it.</p>
<p>2.My drive free space contain 70 GB while i Restore 30 GB database It&#8217;s required nearly required 82 GB why it&#8217;s happen</p>
<p>Please guide on this&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140211</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 10 Jun 2011 10:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-140211</guid>
		<description><![CDATA[1 restore database dbname from disk=&#039;backup path&#039;
2 Use varchar column]]></description>
		<content:encoded><![CDATA[<p>1 restore database dbname from disk=&#8217;backup path&#8217;<br />
2 Use varchar column</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renu</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-139389</link>
		<dc:creator><![CDATA[Renu]]></dc:creator>
		<pubDate>Tue, 07 Jun 2011 07:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-139389</guid>
		<description><![CDATA[hi ramya

u create the sqlscript of that .bak file in sql server 2000 and execute the script in sql2005.. itz wil be work fine....

Refer the below link..
http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/]]></description>
		<content:encoded><![CDATA[<p>hi ramya</p>
<p>u create the sqlscript of that .bak file in sql server 2000 and execute the script in sql2005.. itz wil be work fine&#8230;.</p>
<p>Refer the below link..<br />
<a href="http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/" rel="nofollow">http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramya</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-139143</link>
		<dc:creator><![CDATA[Ramya]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 04:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-139143</guid>
		<description><![CDATA[Hi Pinal
  

1)How to restore the .bak file in sql server 2005..
But that .bak was created by using sql server 2000....

2) How to store the IP address..]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>1)How to restore the .bak file in sql server 2005..<br />
But that .bak was created by using sql server 2000&#8230;.</p>
<p>2) How to store the IP address..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Litesh Gawande</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-136184</link>
		<dc:creator><![CDATA[Litesh Gawande]]></dc:creator>
		<pubDate>Mon, 23 May 2011 10:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-136184</guid>
		<description><![CDATA[Hi All,

I tried to restore a .bak file from 2005 SQL server to 2008 SQL server, but the process errors out using the above method. I have got a list of errors, one of them is 

Msg 5133, Level 16, State 1, Line 1
Directory lookup for the file &quot;M:\MSSQL\MARKET\MARKET_primary_01.mdf&quot; failed with the operating system error 3(The system cannot find the path specified.).

The process is referring to M:\MSSQL\MARKET, the location where the MARKET_primary_01.mdf was residing originally in the source server, whereas it should refer to the location where the destination sever is.(correct me if I am wrong)

Most of the errors are for the incorrect locations.

Can anyone help me out with this?

Thanks in advance.

Regards,
Litesh]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I tried to restore a .bak file from 2005 SQL server to 2008 SQL server, but the process errors out using the above method. I have got a list of errors, one of them is </p>
<p>Msg 5133, Level 16, State 1, Line 1<br />
Directory lookup for the file &#8220;M:\MSSQL\MARKET\MARKET_primary_01.mdf&#8221; failed with the operating system error 3(The system cannot find the path specified.).</p>
<p>The process is referring to M:\MSSQL\MARKET, the location where the MARKET_primary_01.mdf was residing originally in the source server, whereas it should refer to the location where the destination sever is.(correct me if I am wrong)</p>
<p>Most of the errors are for the incorrect locations.</p>
<p>Can anyone help me out with this?</p>
<p>Thanks in advance.</p>
<p>Regards,<br />
Litesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj S Nair</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-122969</link>
		<dc:creator><![CDATA[Manoj S Nair]]></dc:creator>
		<pubDate>Sat, 12 Mar 2011 06:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-122969</guid>
		<description><![CDATA[Dear All,

This post really saved a lot of time and got the solution in a minute.

Manoj]]></description>
		<content:encoded><![CDATA[<p>Dear All,</p>
<p>This post really saved a lot of time and got the solution in a minute.</p>
<p>Manoj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hızlı okuma</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-121368</link>
		<dc:creator><![CDATA[hızlı okuma]]></dc:creator>
		<pubDate>Tue, 01 Mar 2011 14:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-121368</guid>
		<description><![CDATA[Hi pinal,

I need your help in SQL server restoring issue. Error is as follows.

“The backed-up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database.RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3169)”

I know that it is not possible to restore SQL server 2005 database in SQL server 2000 database.

Do we have any way to export the data from 2005 and import it to SQL server 2000?

Please assist me.]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>I need your help in SQL server restoring issue. Error is as follows.</p>
<p>“The backed-up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database.RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3169)”</p>
<p>I know that it is not possible to restore SQL server 2005 database in SQL server 2000 database.</p>
<p>Do we have any way to export the data from 2005 and import it to SQL server 2000?</p>
<p>Please assist me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-117859</link>
		<dc:creator><![CDATA[Arun]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 11:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-117859</guid>
		<description><![CDATA[Hi Guys,

This is for all you techie&#039;s who like me might have scratched their head for sometime.

Thanks for all the people who had posted in this page, reading your postings I could arrive at my solution.

I had to use a combination of both REPLACE and MOVE commands.

My posting is done based on SQL 2005. I hadn&#039;t tested it in other versions.

My Situation:
I backed up a database in T-SQL, created a new DB with a diff name and used the backup file to restore onto the new DB and came up with the dreaded error - &quot;The backup set holds a backup of a database other than the existing &#039;xxx&#039; database.&quot;

My Predicament:
I cannot use the Enterprise manager, because this is an application where the coding is done and it is a process that needs to create the database doing the above steps.

My Solution:
RESTORE DATABASE NewDBName FROM DISK = N&#039;C:\OldDB.BAK&#039;  WITH REPLACE, MOVE &#039;OldDBLogicalName_data&#039; TO &#039;C:\Location\NewDB_Data.mdf&#039;,  MOVE &#039;OldDBLogicalName_Log&#039; TO &#039;C:\Location\NewDB_Log.ldf&#039;,  STATS = 10]]></description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>This is for all you techie&#8217;s who like me might have scratched their head for sometime.</p>
<p>Thanks for all the people who had posted in this page, reading your postings I could arrive at my solution.</p>
<p>I had to use a combination of both REPLACE and MOVE commands.</p>
<p>My posting is done based on SQL 2005. I hadn&#8217;t tested it in other versions.</p>
<p>My Situation:<br />
I backed up a database in T-SQL, created a new DB with a diff name and used the backup file to restore onto the new DB and came up with the dreaded error &#8211; &#8220;The backup set holds a backup of a database other than the existing &#8216;xxx&#8217; database.&#8221;</p>
<p>My Predicament:<br />
I cannot use the Enterprise manager, because this is an application where the coding is done and it is a process that needs to create the database doing the above steps.</p>
<p>My Solution:<br />
RESTORE DATABASE NewDBName FROM DISK = N&#8217;C:\OldDB.BAK&#8217;  WITH REPLACE, MOVE &#8216;OldDBLogicalName_data&#8217; TO &#8216;C:\Location\NewDB_Data.mdf&#8217;,  MOVE &#8216;OldDBLogicalName_Log&#8217; TO &#8216;C:\Location\NewDB_Log.ldf&#8217;,  STATS = 10</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-114111</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 15:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-114111</guid>
		<description><![CDATA[Thanks. I come across this error occasionally and I always forget the SQL statement to restore.]]></description>
		<content:encoded><![CDATA[<p>Thanks. I come across this error occasionally and I always forget the SQL statement to restore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Amodia</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-112068</link>
		<dc:creator><![CDATA[Ashish Amodia]]></dc:creator>
		<pubDate>Wed, 19 Jan 2011 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-112068</guid>
		<description><![CDATA[Pinal Deva ki jai ho…… ,

I was trying to restore that database by wizard and also selecting Replace / overwirte than too its was going me Error:3154
And i tried by query it work perfect …. dont know how this happen but my problem get solved for now i will find the cause y such happen …..

ThnQ boss :)

cu soon
in TechDays :)]]></description>
		<content:encoded><![CDATA[<p>Pinal Deva ki jai ho…… ,</p>
<p>I was trying to restore that database by wizard and also selecting Replace / overwirte than too its was going me Error:3154<br />
And i tried by query it work perfect …. dont know how this happen but my problem get solved for now i will find the cause y such happen …..</p>
<p>ThnQ boss :)</p>
<p>cu soon<br />
in TechDays :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

