SQL 2005: restore master database

  1. Stop all SQL services
  2. Start SQL server in single-user mode: sqlservr -m
    in SQL Server Configuration Manager, click SQL Server 2005 Services. Then, right-click SQL Server and then go to Properties.
    in the Advanced tab, in the Startup Parameters box, type -m and start the service. 
  3. Run quary:    RESTORE DATABASE master FROM <backup_device> WITH REPLACE; OR You can restore from managment studio by right-click on database and resore database.
  4. Restart the server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: