DECLARE @hexString VARCHAR(MAX) SET @hexString = '0xd9e4'...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering Meta

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, 2)

SELECT @varcharData AS ConvertedData

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results