简体   繁体   English

将SQL Azure数据库导出到本地计算机

[英]Export SQL Azure database to local machine

What's the fastest way to export out a SQL Azure database (so I can restore it in my development environment)? 导出SQL Azure数据库的最快方法是什么(所以我可以在我的开发环境中恢复它)? I am currently using SQL Server Management Studio > right click on database name > Tasks > Export Data Tier Application. 我目前正在使用SQL Server Management Studio>右键单击数据库名称>任务>导出数据层应用程序。 It then exports it into a .bacpac file on my local machine. 然后它将其导出到本地计算机上的.bacpac文件中。

However this process takes a long time (almost 1 hour for large databases). 但是,此过程需要很长时间(大型数据库大约需要1小时)。 Is there a faster process available? 是否有更快的流程?

I do not have an Azure storage account so I can't use the Export function in the Azure portal. 我没有Azure存储帐户,因此我无法在Azure门户中使用导出功能。

The fastest way would be to export the DB to a bacpac on a storage account then download the bacpac to your local machine to re-import. 最快的方法是将数据库导出到存储帐户上的bacpac,然后将bacpac下载到本地计算机以重新导入。 If a azure storage account is not an option, then yes the only way is the way you are doing it now. 如果一个azure存储帐户不是一个选项,那么唯一的方法是你现在这样做。

The best way is here: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-export Export to a Stogare Account because use the same Data Center in the same azure region and the transference it's very faster. 最好的方法是: https ://docs.microsoft.com/en-us/azure/sql-database/sql-database-export导出到Stogare帐户,因为在同一个azure区域使用相同的数据中心和转移它的速度非常快。 Then you can download the bacpac from azure portal or use the Storage Explorer tool: http://storageexplorer.com/ 然后,您可以从azure portal下载bacpac或使用Storage Explorer工具: http ://storageexplorer.com/

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

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