简体   繁体   English

用备份替换Azure数据库

[英]replace azure database with backup

I have a backup file (.bacpac) of an azure database. 我有一个Azure数据库的备份文件(.bacpac)。 I'd like to replace the existing azure database with that backup. 我想用该备份替换现有的Azure数据库。 What is the recommended procedure: 推荐的程序是什么:

  • importing the backup into a new database and rename the database to the old one? 将备份导入新数据库并将数据库重命名为旧数据库?
  • using SSMS T-SQL: "Restore database [db] from [url] with credential=[..]" ? 使用SSMS T-SQL:“使用凭据= [..]从[url]恢复数据库[db]”?

How can I ensure that the user is not/minimal affected by the restoring procedure? 如何确保用户不受还原过程的影响/最小程度? Can I set the database to be replaced in any kind of offline mode? 是否可以将数据库设置为以任何离线模式替换?

Upload your BACPAC file to a container in Blob Storage 将您的BACPAC文件上传到Blob存储中的容器

Delete the existing database through the management portal @ http://manage.windowsazure.com 通过管理门户@ http://manage.windowsazure.com删除现有数据库

Click the "+ New" in the bottom left corner of the management portal. 单击管理门户网站左下角的“ +新建”。 Data Services > SQL Database > Import 数据服务> SQL数据库>导入

In the modal popup that appears, choose your storage account, container, BACPAC file. 在出现的模式弹出窗口中,选择您的存储帐户,容器,BACPAC文件。 Type in the name of the Database that you've just deleted so it gets the same name. 输入刚删除的数据库的名称,以便获得相同的名称。 Choose DB Size, Subscription, Server Username, Password etc... and the wizard will import the BACPAC. 选择“数据库大小”,“订阅”,“服务器用户名”,“密码”等...,向导将导入BACPAC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM