FUNCTION  fVarBinToHex

Returns hexadecimal string of varbinary input

The input is scanned converting nibbles to hex characters
select dbo.fVarBinToHex(0x4532ae1245)

Input and output parameters

nametypelengthinoutpnum
@varBinaryvarbinary4000input1
 varchar8000input0