Hi,
In oracle, there is a function:
dec2hex().
If I feed it with the integer value: 5044857
It returns the value: 304MX
In SQL (SQL 2008 I believe it is), there are two ways I have tried doing the same:
They both return: 0x004CFA79
How can I geet the expected: 304MX ?
Olav Alexander Mjelde
In oracle, there is a function:
dec2hex().
If I feed it with the integer value: 5044857
Code:
select dec2hex(5044857) from dual;
In SQL (SQL 2008 I believe it is), there are two ways I have tried doing the same:
Code:
SELECT 5044857, master.dbo.fn_varbintohexstr(5044857)
SELECT 5044857, CONVERT(VARBINARY(8), 5044857)
They both return: 0x004CFA79
How can I geet the expected: 304MX ?
Olav Alexander Mjelde