Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Error .........While Restoring MASTER database Expand / Collapse
Author
Message
Posted Tuesday, June 02, 2009 5:05 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
hi

I have build a new Sql server Machine(64 bit )

i am restoring Master database ,
whose Backup has been taken just few seconds before restoring.

Its giving error :

Msg 3154, Level 16, State 4, Line 1
The backup set holds a backup of a database other than the existing 'master' database.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.


The used script is :

RESTORE DATABASE [master] FROM
DISK = N'D:\REPORT_DEV\MSSQL.2\MSSQL\Backup\master_backup_20090602.bak'

WITH RESTRICTED_USER, FILE = 1, NOUNLOAD, STATS = 10


The Server is in SINGLE USE MODE

Please help


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #727303
Posted Tuesday, June 02, 2009 5:18 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:50 AM
Points: 1,618, Visits: 20,898
Try appending "REPLACE" in the restore command.


.... WITH RESTRICTED_USER, REPLACE ......


Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #727318
Posted Tuesday, June 02, 2009 5:22 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Tuesday, May 07, 2013 3:03 AM
Points: 4,218, Visits: 3,874
Could it be that your backup device contains more than one backup?
I see you're using the option WITH FILE =1, which will restore the first backup which has been added to the device.
You can use RESTORE HEADERONLY to check what backups are in the file.


Markus Bohse
Post #727321
Posted Tuesday, June 02, 2009 5:29 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
i modified the script and use WITH REPLACE option.

Script used:


Restore database [master]
from disk = 'd:\report_dev\mssql.2\mssql\master_backup_20090602.bak'
with replace



but this time i got new issue of "version mismatch"


Msg 3168, Level 16, State 1, Line 1

The backup of the system database on the device D:\REPORT_DEV\MSSQL.2\MSSQL\Backup\master_backup_20090602.bak cannot be restored because it was created by a different version of the server (9.00.3310) than this server (9.00.1399).


Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #727327
Posted Tuesday, June 02, 2009 5:34 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:50 AM
Points: 1,618, Visits: 20,898
As suggested by Markus use "RESTORE HEADERONLY.." to verify that you are restoring from the right backup set. If you backup file has only one FILE, then you have to install the hotfix from http://support.microsoft.com/kb/959420 to bring this server to 9.00.3310. After that try restoring the master database.

Hope this helps !


Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #727334
Posted Tuesday, June 02, 2009 5:44 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:01 PM
Points: 37,669, Visits: 29,923
Are you trying to restore a master database from a different server?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #727341
Posted Tuesday, June 02, 2009 5:45 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, August 24, 2012 8:11 AM
Points: 1,097, Visits: 2,157
You cannot restore master database to a server which has different version. Both versions should be similar. As advised you should be able to upgrade it and then restore it with REPLACE command as the master datsbase already exists.

Post #727343
Posted Tuesday, June 02, 2009 5:48 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
hi
yes from Different Server.

Following are the different versions


Backup taken from :
Microsoft SQL Server 2005 - 9.00.3310.00 (X64) Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)

Restore at server :
Microsoft SQL Server 2005 - 9.00.1399.06 (X64) Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)






-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #727345
Posted Tuesday, June 02, 2009 5:59 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:01 PM
Points: 37,669, Visits: 29,923
bhuvnesh.dogra (6/2/2009)
hi
yes from Different Server.


That's not a particularly good idea. There's a fair bit of stuff in master that's specific to the machine it was built on. Taking a copy from one server and restoring on another may give you some odd problems in the future (service accounts and built-in logins specifically)

What's your goal here?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #727357
Posted Tuesday, June 02, 2009 6:09 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
Actually ,

currently we have low configuration MAchine
and now we need to clone the databases to High config Machine.

bascially replica of current one to new server .


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #727363
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse