--在Sql Server中执行这段代码可以开启CLR
EXEC sp_configure 'show advanced options','1';GO
RECONFIGURE;GO
EXEC sp_configure 'clr enabled','1'GO
RECONFIGURE;