這個方法比較簡單
c#代碼如下
using System;
using System
using Microsoft
public partial class UserDefinedFunctions
{
[Microsoft
public static SqlString BigToGB(SqlString inString)
{
if (inString
return (Microsoft
}
[Microsoft
public static SqlString GBToBig(SqlString inString)
{
if (inString
return (Microsoft
}
};
部署代碼如下
CREATE ASSEMBLY BigConvertor FROM
go
CREATE FUNCTION dbo
(
@value nvarchar ( max )
)
RETURNS nvarchar ( max )
AS EXTERNAL NAME BigConvertor
go
CREATE FUNCTION dbo
(
@value nvarchar ( max )
)
RETURNS nvarchar ( max )
AS EXTERNAL NAME BigConvertor
go
測試代碼如下
/* 測試 */
select dbo
select dbo
From:http://tw.wingwit.com/Article/program/MySQL/201311/29553.html