Overwrite/restore system databases
-
Monday, February 18, 2013 8:06 PM
Hi,
We had a crash and needed to rebuild the cluster and install SQL Server. We still have old master/msdb mdf/ldf files and also have the week old backups of system databases. Can we do the following (http://msdn.microsoft.com/en-us/library/ms190190.aspx):
- Take a copy of current mdf/ldf files (if required later)
- Stop sql server and agent
- Overwrite master,msdb and model mdf/ldf files
- Restart SQL Server
or
for step 3 we should not overwrite the mdf/ldf files and use the backups of system databases of 1 week old
or
we should not restore master and only use the above for msdb if restoring master can cause any other issue
- Edited by Harvinder Singh Monday, February 18, 2013 8:08 PM
All Replies
-
Monday, February 18, 2013 9:36 PMYou can replace the old master, msdb mdf and ldf file provided the SQL Server build is the same as earlier, meaning if the SQL instance before crash was on build 10.50.2500 then you will need to get the new SQL instance up to the same build 10.50.2500
-
Tuesday, February 19, 2013 5:32 AM
Hi Harvinder
Yes you can overwrite but if build is same and if its different then you can first restore system databases on your new instance as user database and then replace mdf and ldf files
refrence : http://saurabhsinhainblogs.blogspot.in/2012/09/knowledge-sharing-restoring-system.html
Thanks
Saurabh Sinha
http://saurabhsinhainblogs.blogspot.in/
Please click the Mark as answer button and vote as helpful if this reply solves your problem- Edited by Saurabh Sinha DBA Tuesday, February 19, 2013 5:33 AM
- Proposed As Answer by vr.babu Tuesday, February 19, 2013 6:35 AM
- Marked As Answer by Maggie LuoMicrosoft Contingent Staff, Moderator Tuesday, February 26, 2013 9:29 AM
-
Tuesday, February 19, 2013 6:35 AM
why dont you restore the system databases
http://sqlservr.blog.com/2012/05/09/how-to-restore-system-database-in-2-steps/
Ramesh Babu Vavilla MCTS,MSBI

