我正在尝试将.bacpac
Azure数据库导入到本地运行的SQL Server 2017企业版中。
SQL Server抛出以下错误。我想知道是否有人可以提供帮助。提前谢谢。
无法导入包。
警告SQL72012:目标中存在对象[xxxx enter image description here - insights_Data],但即使您选择了“为目标数据库中的对象生成删除语句但不是,也不会删除它”在源'复选框。
警告SQL72012:目标中存在对象[2pointb-testing-insights_Log],但即使您选择了“为目标数据库中但不在源中的对象生成删除语句”,也不会删除该对象'复选框。
错误SQL72014:.Net SqlClient数据提供程序:
Msg 10343,Level 14,State 1,Line 1
使用SAFE或EXTERNAL_ACCESS选项对程序集“GroupConcat”进行CREATE或ALTER ASSEMBLY失败,因为sp_configure的“clr strict security”选项设置为1. Microsoft建议您使用具有相应登录名的证书或非对称密钥对程序集进行签名UNSAFE ASSEMBLY许可。或者,您可以使用sp_add_trusted_assembly信任程序集。错误SQL72045:脚本执行错误。执行的脚本: CREATE ASSEMBLY [GroupConcat] 授权[dbo] 从0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C01030058898C510000000000000000E00002210B010B00001E000000080000000000007E3D0000002000000040000000000010002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000243D000057000000004000003804000000000000000000000000000000000000006000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000841D000000200000001E000000020000000000000000000000000000200000602E7273726300000038040000004000000006000000200000000000000000000000000000400000402E72656C6F6300000C000000006000000002000000260 (Microsoft.SqlServer.Dac)
答案 0 :(得分:1)
以下脚本对我有用:
EXEC sp_configure 'show advanced options',1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'clr strict security',0;
GO
RECONFIGURE;
GO