Azure SQL Server BACPAC导入失败

迪帕克·库马尔(Deepak Kumar)

每当我尝试在本地sql服务器上导入BACPAC时,都会收到以下错误消息:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Could not import package.
Warning SQL0: The source contains users that rely on an external authentication provider that is not supported by the target. These users will be treated as users without logins.
Warning SQL72012: The object [DB_NAME_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [DB_NAME_Log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Error SQL72014: .Net SqlClient Data Provider: Msg 33161, Level 15, State 1, Line 1 Database master keys without password are not supported in this version of SQL Server.
Error SQL72045: Script execution error.  The executed script:
CREATE MASTER KEY;


 (Microsoft.SqlServer.Dac)

------------------------------
BUTTONS:

OK
------------------------------

先前报告的所有关于SO的问题都与此不同。有人遇到过同样的问题吗?

迪帕克·库马尔(Deepak Kumar)

最终,我能够按照此处建议的选项2解决此问题

简而言之,

  1. 此处保存实用程序RemoveMasterKeyFrombacpac
  2. 运行命令 .\RemoveMasterKey.ps1 -bacpacPath "C:\BacPacs\fileName.bacpac"

完成上述命令后,我们将获得-patched bacpac,它可以无缝导入。

更新资料

使用新的MS SQL Server 2016(13.0.1745.2)和SSMS v17.6不再是问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

导入 SQL Server .bacpac 文件

Azure 函数 - 从 Azure sql server 中的 blob 存储导入 bacpac 文件 - AAD 令牌

SQL Server bacpac在最新更新中本地导入失败(只能在SQL Server企业版中执行在线索引操作)

无法将SQL Azure bacpac导入2016 CTP

在 AWS RDS 上的 SQL Server 中导入 .bacpac 文件

SQL Azure BACPAC提取

SQL Server Azure“用户登录失败”

内部错误将BACPAC文件导入Windows Azure SQL数据库

如何使用Visual Studio将Azure SQL备份(.bacpac)导入LocalDB?

导入bacpac文件时,Sql Server收到“存档文件不能为大小0。”

Write-SqlTableData 将 CSV 导入 Azure SQL Server 表

如何将 Azure blob 文件导入 Sql Server 2008

在Azure中导入SQL Server 2008数据库

如何使用Azure服务将Excel文件导入SQL Server

使用 BCP 将 CSV 文件导入 Azure SQL Server

无法导入SQL Azure V12 BACPAC:“类型Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider无效”

使用SQL Server创建Microsoft Azure Web App失败

Azure SQL Server 复制数据库脚本失败

SSMS 2016错误导入Azure SQL v12 bacpac:不支持没有密码的主键

Kubernetes SQL Server或Azure SQL Server PaaS

使用Sql Server Management Studio 2016导入bacpac时出错-无法加载文件或程序集Microsoft.SqlServer.Dac

如何将 Azure 存储 Blob JSON 导入 Azure SQL Server

通过SSMS将平面文件导入SQL Server失败

Azure VM SQL Server访问

Azure SQL Server 标签与屏蔽

Azure中的免费SQL Server

Azure SQL Server托管实例

缩小 Azure SQL Server 权限

Azure SQL Server 创建日期