This section describes how to backup and restore Microsoft SQL Server with the OBM.
Table of Contents:
Refer to the following instructions to restore the master database:
Important:
When you start SQL Server in single-user mode, first stop SQL Server Agent.
Otherwise, SQL Server Agent might connect first, preventing you from connecting as a second user.
>RESTORE DATABASE master FROM ${backup_device} WITH REPLACE
${backup_device} is the database file restored from the OBS:
C:\>sqlcmd 1>RESTORE DATABASE master FROM DISK = .C:\temp\master.bak. WITH REPLACE; 2>GO
Before you restart the server instance, ensure to remove the single user startup parameter that you have added previously in Step 2.
Refer to the following instructions to restore a complete backup:
Note:
SQL Server databases may be backed up on one server and restored to another server.
If the target database does not exist on the server, right click on any database instead. A new database can be created while restoring the backup.
For the [Recovery state] setting:
Important:
If this is the final backup to be restored, select -
[Leave database ready to use by rolling back uncommitted transactions. Additional transaction logs cannot be restored]
If there are further differential or transaction log to be applied, selection one of the other two options for the Recovery completion state.
Refer to the following instructions to restore a differential or transaction log backup:
Important
Backups must be restored in the order in which they were created.
Transaction log can only be applied to database in WITH NORECOVERY recovery state.
If the database to be restored is not in NORECOVERY recovery state, restore the previous backup using the following recovery state option:
[Leave the database non-operational, and do not roll back the uncommitted transactions. Additional transaction logs can be restored].
Select the corresponding user database or system database.
For the [Recovery state] setting:
Important:
If this is the final backup to be restored, select [Leave database ready to use by rolling back uncommitted transactions. Additional transaction logs cannot be restored].
If there are further differential or transaction log to be applied, selection one of the other two options for the Recovery completion state.
Refer to the following instructions to restore the master database:
Important:
When you start SQL Server in single-user mode, first stop SQL Server Agent.
Otherwise, SQL Server Agent might connect first, preventing you from connecting as a second user.
>RESTORE DATABASE master FROM ${backup_device} WITH REPLACE
${backup_device} is the database file restored from the OBS:
C:\>sqlcmd 1>RESTORE DATABASE master FROM DISK = .C:\temp\master.bak. WITH REPLACE; 2>GO
Before you restart the server instance, ensure to remove the single user startup parameter that you have added previously in Step 2.
Refer to the following instructions to restore a backup:
Depending on the database, either selects a user database or expands [System Databases], and then selects a system database.
Note:
SQL Server databases may be backed up on one server and restored to another server.
If the target database does not exist on the server, right click on any database instead. A new database can be created while restoring the backup.
To create a new database, enter its name in the list box.
With Timeline option
With relocate all file and folder option
With Taillog backup restore option