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.
3. To restore a full database backup of master, use the following RESTORE DATABASE Transact-SQL statement:
>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
4. After master is restored, the instance of SQL Server shuts down and terminates the sqlcmd process. 5. Before you restart the server instance, ensure to remove the single user startup parameter that you have added previously in Step 2. 6. Restart the server instance and continue other recovery steps such as restoring other databases.
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