August 20, 2007 at 2:30 pm
I am trying to restore master to a new server but location of data and log files is different in this new server. The previous location was 'D:\Program Files\Microsoft SQL Server\MSSQL\data\" the current is in the C: Drive when trying to restore using MOVE:
RESTORE DATABASE master FROM DISK ='\\Pfileserver\sqlbackup\MDFfiles\master_db_200708170121.BAK' WITH RECOVERY ,
MOVE 'master' TO 'C:\Program Files\Microsoft SQL Server\data\master.mdf',
MOVE 'mastlog' TO 'C:\Program Files\Microsoft SQL Server\MSSQL\data\mastlog.ldf'
I get the following error message:
The system database cannot be moved by RESTORE
Is there a way you can restore master to a different location?
Thanks,
Carlos
August 20, 2007 at 9:38 pm
Hi Carlos,
Use the dettach function.
August 21, 2007 at 3:43 am
If you want to move your master which is currently in D:\drive to C:\drive you need to perform as shown in the below link,
http://sql-articles.com/articles.php?pageNum_alltop=5&totalRows_alltop=35
just click on the topic "Moving system databases" you can see a detailed document of how to proceed........well i dont think you can perform as said by Kevin..........it will work perfectly for user db but not for system db.....for system db you need to stop sql services and move the path og masters ldf and mdf to a new location and go to sql server configuration manager and give the new path for mdf and ldf files in the startup parameters and then restart sql services..............
[font="Verdana"]- Deepak[/font]
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply