|
|
|
SSCrazy
      
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
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:50 AM
Points: 1,618,
Visits: 20,898
|
|
|
|
|
|
SSCarpal 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
|
|
|
|
|
SSCrazy
      
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
|
|
|
|
|
SSCommitted
      
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
|
|
|
|
|
SSC-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
|
|
|
|
|
Ten 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.
|
|
|
|
|
SSCrazy
      
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
|
|
|
|
|
SSC-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
|
|
|
|
|
SSCrazy
      
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
|
|
|
|