错误信息如下:禁止在.Net Framewrok中执行用户代码.启用"clr enabled"配置选项解决方案: -- 在Sql Server中执行这段代码可以开启CLR 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