如何在 SQL 服务器中禁用 "clr strict security"
How to disable "clr strict security" in SQL Server
我通过 运行:
启用了 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;
现在我可以创建程序集了。
我通过 运行:
启用了 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;
现在我可以创建程序集了。