??SQL Server????dll??????
???????????? ???????[ 2015/3/10 13:41:58 ] ????????????? SQL Server dll
??????SQL Server??????dll???????????
????1.???????dll???
????2.??dll??????SQL Server??????С?????????Function???????????Function??????dll?е??????
???????????dll???
????1.???“???”->“???”->“???”->??????????????StringHelp????????′???
namespace StringHelp?????????????????? //???????
{
public class ClassConvert????????????//????
{
//?????????????е?Сд???????д???
public static string ToUpper(string vInputString)????//????????????????????????????????????????????
{
return vInputString.ToUpper();
}
}
}
????2.???“???”?????”????“????????F6
????3.???“???”?????“???????????????д??????”?????bin->debug???????????StringHelp.dll?????
??????SQL??????dll???
????1.????dll???
???????SQL??? create assembly TestDll from 'C:Users??DocumentsVisual Studio 2012ProjectsStringHelpStringHelpobjDebugStringHelp.dll'
????????TestDll?????????????????????????????
?????????????dll????У?????????dll??????????????????dll??????????????????????dll?????????system.web dll??????????????????TestDll??
??????????????????system.web dll?????
????2.???????Function??????dll???
???????????SQL???
CREATE FUNCTION dbo.ToUpper????--?ú???????
(
@InputString as nvarchar(500)
)
RETURNS nvarchar(200)??????????--????????
AS EXTERNAL NAME TestDll.[StringHelp.ClassConvert].ToUpper
?????????±?????????????
????TestDll??????????dll???????
????StringHelp???dll??????????????????
????ClassConvert???dll???????????????
????ToUpper???dll?????????????????????
?????????????????????ú???
????print dbo.ToUpper('abc')
???????????ABC
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11