View Source

{info:title=Tip}As an alternative to using the Databases Add-on, you can restore a database's MDF and LDF files using the File Restore function, and then issuing an "Attach Database" query.{info}

You can restore an MS SQL Server database or databases to an alternate location by following the instructions listed below in your CDP Enterprise Edition.


{info:title=Note}
MySQL database tables can be restored simultaneously; this is implemented by using multiple threads.
{info}

1. Click on "Recovery Points" in the Main Menu to open the "Recovery Points" screen.

!rec-p-menu.png!

2. In the "Recovery Points" list, select a Recovery Point containing the database replication that you want to restore.
{info:title=Tip}To find a Recovery Point, you can use the Basic or Advanced List Filter. See [Customizing the Recovery Points List].
{info}
Click on the "Browse Databases" icon in the "Actions" column for this Recovery Point.

!854.png!

3. The "Browse Databases" window opens. Select a database instance from the drop-down menu.

!846.png!

4. You can browse the instance by clicking the "+" icon.

!847.png!

5. Select the database you want to restore, and click "Restore Selected."

!848.png!

{note:title=Notice}The system databases {{master}}, {{msdb}}, {{model}}, and {{tempdb}} are not displayed in the "Restore Databases" wizard. To restore these databases, use the [Bare-Metal Restore|CDP:Bare-Metal Restore] function.{note}

{info:title=Tip}To be able to restore an alternate database, do not check the "Databases" box. Instead, select the desired databases by clicking the check-box next to each database you want to restore. See also: [MS SQL Server Restore with Alternate Name].{info}

6. In the displayed "Restore Databases" wizard window, define the options for the restore.
* *Restore to Original Host* \- If you select this option, the restore will be made to the Agent where the source database was located. If the database exists, it can be overwritten.
* *Restore to Alternate Agent* \- Select a destination Agent that is in the system. Specify the database host and port. Available only in Enterprise Edition.

In our example, we select the "Restore to Alternate Agent" option to connect to the selected Agent's host name and the specified port.


Click "Next" to proceed to the following step.


!849.png!


7. On the "Alternate DB Names" screen, define an alternate database name for any of the selected databases for restore as a new step in the "Restore Databases" wizard. If a database with the new name already exists, that restore will fail and will alert the Policy.

Expand the details to select alternate database paths.

The database can be restored to a different location with a different name. Make sure that you provide the alternate database name and the alternate {{.mdf}} and {{.ldf}} file paths.

{info:title=Tip}
Do not provide extensions.
{info}

{info:title=Tip}
When performing an MS SQL Server restore to an alternate directory, the directory must already exist. Create an alternate restore directory before restoring the MS SQL Server to it.
Read more in [MS SQL Server Restore to Alternate Location].
{info}



Click "Next" to proceed to the following step.

!850.png!

8. On the last "Summary" screen, the settings you have selected are displayed.

!851.png!


9. Once you have verified that the specified settings are correct, click "Restore." The restore process will start immediately.

!852.png!

10. The "Details for Database Restore" window will appear. It indicates that the restore process has been launched. You can watch the progress in real time.


!853.png!




{excerpt:hidden=true}Instructions on how to back up and restore an MS SQL Server database or databases in your CDP Enterprise.{excerpt}