How to restore the master database (Transact-SQL)

To restore the master database


Important The system administrator restoring the database backup must be the only person currently using the database to be restored.


  1. Start Microsoft® SQL Server™ in single-user mode.
  2. Execute the RESTORE DATABASE statement to restore the master database backup, specifying:
Examples

This example restores the master database backup from tape without using a permanent (named) backup device.

USE master

GO

RESTORE DATABASE master

    FROM TAPE = '\\.\Tape0'

GO

  

See Also
RESTORE Restoring the master Database from a Current Backup
How to start SQL Server in single-user mode (Command Prompt)  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.