Q&A about the site for professionals and students of engineering
DECLARE @hexString VARCHAR(MAX) SET @hexString = '0xd9e4' DECLARE @binaryData VARBINARY(MAX) SET @binaryData = CONVERT(VARBINARY(MAX), @hexString, 1) DECLARE @varcharData VARCHAR(MAX) SET @varcharData = CONVERT(VARCHAR(MAX), @binaryData, 5) SELECT @varcharData AS ConvertedData