

See Using the command line for more information. To restore the master database files, you need to have latest backup of the master.ldf and MDF file. You can now start the SQL Server in normal mode.SQL Backup Pro restores the master database, and SQL Server automatically stops the SQL Server service when the restore operation is complete. SQLBackupC.exe -SQL "RESTORE DATABASE master FROM DISK='C:\Backups\master 20070101.sqb' WITH REPLACE" -I Instance2

If you are restoring the master database to a new (or rebuilt) server you will need to add the WITH REPLACE keyword, for example: SQLBackupC.exe -SQL "RESTORE DATABASE master FROM DISK='C:\Backups\master 20070101.sqb'" -I Instance2 -U sa -P MyPassword If you are using SQL Server authentication, use the -U and -P parameters to add the authentication details, for example: In our ramp-up to rebuild we created a script called 1.sql. Use the SQL Backup Pro command line interface ( SQLBackupC.exe) to restore the master database.įor example, at the command prompt, type: SQLBackupC.exe -SQL "RESTORE DATABASE master FROM DISK = 'C:\Backups\master 20070101.sqb'"įor a named instance, use the -I parameter to specify the instance name, for example: SQLBackupC.exe -SQL "RESTORE DATABASE master FROM DISK = 'C:\Backups\master 20070101.sqb'" -I Instance2 Now we finally move on to what matters most to the users - their databases.

To restore the master database, you must use the SQL Backup Pro command line to ensure that the SQL Server is started in single user mode.
