gpt4 book ai didi

sql-server - Azure SQL Server BACPAC 导入失败

转载 作者:行者123 更新时间:2023-12-03 02:26:52 25 4
gpt4 key购买 nike

每当我尝试在本地 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 上报告的所有问题都与此不同。以前有人遇到过同样的问题吗?

最佳答案

尝试针对您的 master 数据库运行此操作(右键单击 SSMS 中的服务器名称 -> 新查询)

sp_configure 'contained database authentication', 1;
GO
RECONFIGURE;
GO

此后,您可以再次执行导入 bacpac 向导,问题应该会得到解决。

关于sql-server - Azure SQL Server BACPAC 导入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47213938/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com