第 4 课程:从完整的数据库备份执行数据库恢复

本课程演示如何使用 tsql 语句从上一课中创建的完整数据库备份执行还原。

执行数据库备份的恢复

若要还原完整数据库备份,请使用以下步骤:

  1. 连接到 SQL Server Management Studio。

  2. 对象资源管理器中,连接到 SQL Server 2014 实例。

  3. 在“标准”菜单栏上,单击“ 新建查询”。

  4. 将以下示例复制并粘贴到查询窗口中,根据需要进行修改。

    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. 验证 T-SQL 语句并单击“执行

返回到教程入门

教程:SQL Server 备份和还原到 Azure Blob 存储服务