Restoring the master database

A damaged master database can cause the SQL Server to fail to start, and other error conditions. You must restore the master database if it is damaged.

Before you begin

About this task

Restriction: The Microsoft Management Console (MMC) cannot connect to a SQL Server instance that is started in single-user mode. When the SQL Server instance is in single-user mode, you must use the command-line interface, tdpsqlc.exe, to restore the master database.

Procedure

  1. Click Start > All Programs > Tivoli Storage Manager > Data Protection for Microsoft SQL Server > SQL Client - Command Line.
  2. Start the SQL Server in single-user mode. For more information about SQL Server startup options, see the Microsoft SQL Server documentation.
  3. Use Data Protection for SQL Server to restore the master database. When the master database finishes the restoration process, the SQL Server shuts down and an error message is displayed. The message indicates that the connection to the SQL Server is lost. This loss of connection is expected.
  4. Restart the Database Engine to restore SQL Server to the typical multi-user mode.
  5. Run the SQL Server setup program to rebuild the master database. When you rebuild the master database, use the same character set and sort order as the master database backup that is to be restored.
  6. Manually reapply any changes to the master database that occurred after the date of the database backup that is used to complete the restore operation.
  7. Restore the msdb database. During the process of rebuilding the master database, the SQL Server setup program drops, and then re-creates, the msdb database. Therefore, you must restore the msdb database with the master database.

Results

After the master database is restored, you can use the MMC to back up and restore individual databases that are operating in single-user mode.