|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 4:21 AM
Points: 1,371,
Visits: 2,300
|
|
what are the steps to restore master database..?
Thanks.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, July 26, 2012 10:06 AM
Points: 267,
Visits: 385
|
|
go to services >> double click the SQL Server service>> stop the service >> type "-m" (excluding quotes) in the start parameters and click on start (do not click ok) >> open the SSMS and give this command :
restore database master from disk='' with replace
stop SQL Server remove -m and start it again .
Regards
Abhay Chaudhary Sr.DBA (MCITP/MCTS :SQL Server 2005/2008 ,OCP 9i)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 4:19 AM
Points: 1,593,
Visits: 1,025
|
|
Abhay
Will all logins , users, roles will be restored.
Should be restore the user database before master , model and msdb if a server crash occurs and you are creating an new environment using the backups save from the crashed server.
Tanx
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, July 26, 2012 10:06 AM
Points: 267,
Visits: 385
|
|
all logins , users, roles will be restored from the pervious master backup .In case you more logins/users created after the last master backup , then you need to script them out using : http://support.microsoft.com/kb/246133/ and http://support.microsoft.com/kb/246133/. Go through them carefully and you will get everything related to all the versions (except 2008 as of now).
Restore the user databases after the system databases.The reason is you cant restore the user databases if your system databases are not up and running as the instance will be down.
Regards
Abhay Chaudhary Sr.DBA (MCITP/MCTS :SQL Server 2005/2008 ,OCP 9i)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 4:19 AM
Points: 1,593,
Visits: 1,025
|
|
If we restore the user databases after the system databases how will we know which database the user is mapped and what role he has.
Tanx
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 4:19 AM
Points: 1,593,
Visits: 1,025
|
|
hi_abhay78 (6/29/2009) all logins , users, roles will be restored from the pervious master backup .In case you more logins/users created after the last master backup , then you need to script them out using : http://support.microsoft.com/kb/246133/ and http://support.microsoft.com/kb/246133/. Go through them carefully and you will get everything related to all the versions (except 2008 as of now).
the second link..........
Tanx
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, July 26, 2012 10:06 AM
Points: 267,
Visits: 385
|
|
So this is what you need to do :
-> restore the system databases -> restore the user databases -> run the script in master for rest of the users/logins creations ...
makes sense ??
Regards
Abhay Chaudhary Sr.DBA (MCITP/MCTS :SQL Server 2005/2008 ,OCP 9i)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 4:19 AM
Points: 1,593,
Visits: 1,025
|
|
.
Tanx
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 3:24 AM
Points: 67,
Visits: 350
|
|
| The problem is you cannot connect to the SQL Instance using SSMS when it is running in single-user mode?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, March 02, 2010 11:32 AM
Points: 1,
Visits: 5
|
|
Yes you can connect to SSMS while in single user mode. Before putting your server into single user mode, make sure you have a proper user account set up or use the sa account to log in. The real issue is that you cannot restore the master database using the query stated earlier.
Myole H. SQL DBA / Report Developer
|
|
|
|