SQL CLR

exec sp_configure 'clr enabled',1启动用sql clr

CREATE FUNCTION dbo.clrHelloWorld   

(   

    @name as nvarchar(200)   

)    

RETURNS nvarchar(200)   

AS EXTERNAL NAME asmHelloWorld.[SQLServerCLRTest.CLRFunctions].HelloWorld 

create assembly hell from 'c:\aaaa\hello.dll' with permission_set = safe

原文地址:https://www.cnblogs.com/server126/p/2185629.html