Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 RESTORE MASTER FROM BKUP

Author  Topic 

gercr
Yak Posting Veteran

53 Posts

Posted - 2002-10-11 : 19:58:07
Hi Recently I run the rebuild utility to change the collation of all my databases on the server, the rebuild was do it with no problem, but all databases and logins was deleted.
how I can restore master from a old backup (maded before run rebuild utility)???

jasper_smith
SQL Server MVP & SQLTeam MVY

846 Posts

Posted - 2002-10-12 : 12:17:29
That's exactly what rebuildm does, it recreastes master from the original media - thus any logins,databases,linked servers etc are lost. What you should do is detach your databases, script your logins,linked servers etc to file and then run rebuildm. To get back to where you started then you need to restore the master database.

1) Stop all SQL Services
2) Open a command prompt and cd to the directory containing sqlservr.exe
3) Run sqlservr.exe -c -m from the command prompt
4) Execute RESTORE DATABASE master from DISK='backupfile'
5) Use Ctrl-C to stop SQL Server
6) Start SQL from SQL Service Manager
7) Verify the restore was successfull



HTH
Jasper Smith
Go to Top of Page
   

- Advertisement -