Returns the platform-independent hexadecimal equivalent of the specified integer, without a “0x” prefix.
inttohex(integer_expression)
select inttohex (10)
-------- 0000000A
Use the inttohex function for platform-independent conversions of integers to hexadecimal strings. inttohex accepts any expression that evaluates to an integer. It always returns the same hexadecimal equivalent for a given expression, regardless of the platform on which it is executed.
See the Transact-SQL Guide for more information about datatype conversion..
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute inttohex.