1. Function: 16进制转字符串 Create FUNCTION [dbo].[f_hextostr] (@hexstring VARCHAR(max)) RETURNS VARCHAR(max) AS begin ), ), @strlen int, @currpos int, @result varchar(max) set @strlen=len(@hexstring) set @result='' while @currpos<@strlen begin ) ,) ' or @…