将 Bacpac 文件导入 Azure SQL DB
我本地有一个DB1的BACPAC文件。我希望BACPAC文件在数据库DB2中导入。 当我尝试使用SSMS中的导入选项(右键单击数据库和导入数据)导入文件时,没有选项可以连接到现有/已创建的DB。我有一个已经创建的DB,我只想将内容从BACPAC文件导入到DB2中。
I have a bacpac file of db1 in my local. I want the bacpac file to import in database db2.
When I was trying to import the file using import option in SSMS (right click database and import data) there is no option to connect to the existing/already created db. I have an already created db where I only want to import the contents from the bacpac file into the db2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SQL 数据库不支持,只能将 BACPAC 文件导入现有数据库新建或空数据库。
如果您想将内容文件导入数据库 2,有多种方法可以实现,
将数据导出到 Blob 存储
选择源表并查看->选择一个或多个表视图并复制 ->下一步->执行成功->关闭。
您可以参考此文档:
https://www.sqlshack.com/connect-azure-storage-account-sql-server-management-studio-ssms/
SQL Database doesn’t support, import BACPAC file into Existing database not possible only New or Empty Database.
If you want to import the content file into Database 2, there are many ways you can get,
Export Data to Blob Storage
Select source table and view -> Choose one or more table views and copy -> Next -> Execution successful -> close.
You can reference this document:
https://www.sqlshack.com/connect-azure-storage-account-sql-server-management-studio-ssms/