我通过运行启用了 clr 集成(即 SQLCLR):
EXEC sp_configure 'clr enabled', 1;
RECONFIGURE;
现在当我尝试:EXEC sp_configure 'clr strict security', 0;
RECONFIGURE;
我收到一条错误消息,说该设置不存在:Msg 15123, Level 16, State 1, Procedure sp_configure, Line 62
The configuration option 'clr strict security' does not exist, or it may be an advanced option.
我知道我的问题的正确解决方案是签署包含存储过程的程序集,以允许它以严格的安全性运行,但现在我需要快速而肮脏的修复。
最佳答案
启用高级选项解决了我的问题:
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'clr strict security', 0;
RECONFIGURE;
现在我可以创建程序集了。
关于sql-server - 如何在 SQL Server 中禁用 "clr strict security",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60395574/