执行存储过程时报错了,禁止在 .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-06-22
  • 2022-01-31
相关资源
相似解决方案