禁止在 .NET Framework 中执行用户代码。启用 "clr enabled" 配置选项。

调用存储过程时提示 “禁止在 .NET Framework 中执行用户代码。启用 "clr enabled" 配置选项。”

执行下面sql就行了

exec sp_configure 'show advanced options', '1';
go
reconfigure;
go
exec sp_configure 'clr enabled', '1'
go
reconfigure;
exec sp_configure 'show advanced options', '1';
go


ALTER DATABASE 数据库 SET TRUSTWORTHY on;
exec sp_changedbowner 'sa'

 

posted @ 2020-04-23 14:50  旗木卡卡罗特  阅读(1495)  评论(0编辑  收藏  举报