Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Lesson 4: Perform a Restore From a Full Database Backup

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

This lesson demonstrates the use of a tsql statement to perform a restore from a full database backup created in the previous lesson.

To restore a full database backup, use the following steps:

  1. Connect to SQL Server Management Studio.

  2. In the Object Explorer, connect to the instance of SQL Server 2016.

  3. On the Standard menu bar, click New Query.

  4. 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
    
  5. Verify the T-SQL statement and click Execute

For other tsql and C# code examples for database restore, see Examples.

Return to Tutorials Portal

Community Additions

ADD
Show:
© 2015 Microsoft