Common language runtime (CLR) 特性支持在sql server中編寫和執行.net的存儲過程、觸發器、和函數
但是要想執行CLR代碼,首先要開啟CLR特性
1.查看CLR特性是否開啟
select * from sys.configurations where name='clr enabled';
value_in_use表明沒有開啟“clr enabled”
2.開啟clr
--enable show advanced options --if it's disable sp_configure 'show advanced options',1 GO RECONFIGURE GO sp_configure 'clr enabled',1 GO RECONFIGURE GO
3.查看結果