Lesson 4: Perform a Restore From a Full Database Backup
This lesson demonstrates the use of a tsql statement to perform a restore from a full database backup created in the previous lesson.
Perform a Restore of a Database Backup
To restore a full database backup, use the following steps:
Connect to SQL Server Management Studio.
In the Object Explorer, connect to the instance of SQL Server 2012.
On the Standard menu bar, click New Query.
Copy and paste the following example into the query window, modify as needed.
RESTORE DATABASE AdventureWorks2012 FROM URL = 'https://mystorageaccount.blob.core.windows.net/privatecontainertest/AdventureWorks2012.bak' WITH CREDENTIAL = 'mycredential'; , STATS = 5 – use this to see monitor the progress GO
Verify the T-SQL statement and click Execute
For other tsql and C# code examples for database restore, see Examples.