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

posted on 2011-09-22 22:41  SonyXbox  阅读(177)  评论(0编辑  收藏  举报

导航