Introduction
In my previous blog, we discussed how to backup database from Microsoft Azure blog storage. Here we will discuss the step by step process to restore database to Microsoft Azure Blog.
Getting Started
Let's say we have 'TestDB' database which will be restored to the Microsoft Azure storage container( https://mystorage.blob.core.windows.net/myTestcontainer) from a backup located at 'D:\' drive. The SQL Server credential for the Azure container has already been created.
Let's say a SQL Server credential for the destination container must already exist as it cannot be created through the Restore task. The 'TestDB' database does not currently exist on the server.
Open SQL Server Management Studio, connect to an instance of the SQL Server Database Engine.
In Object Explorer, expand that instance.
Right-click Databases and select Restore Database....
On the General page, select Device under the Source section.
Click the browse button to open the Select backup devices dialog box.
Select File from the Backup media type: drop-down list.
Click Add and the Locate Backup File dialog box opens.
Navigate to 'D:\', select the backup file and then click OK.
Click OK to return to the General page.
Click Files in the Select a page pane.
Check the box Relocate all files to folder.
Enter the container, https://mystorage.blob.core.windows.net/myTestcontainer, in the text boxes for Data file folder and Log file folder.
Click OK.
Related Articles
- Backup SQL Database to the Azure Blob
- Backup SQL Database Using SSMS
- Enable SQL Remote Connection
- Encrypt data across communication channels
- Recovery Database From Warm-Standy Mode
- Create SQL Job in SQL Server 2017“
Summary
In the above, we discussed the step by step process how to Restore Database to Microsoft Azure Blog, I hope you have enjoyed it.
Thanks