调用存储过程时提示 “禁止在 .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'

 

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
猜你喜欢
  • 2021-11-06
  • 2021-06-22
相关资源
相似解决方案