4>
5> SELECT
6> master.dbo.fn_varbintohexsubstring(1, 0x0123456789abcdef, 1, 2)
7> GO
------------------------------------------------------------------------------------------------------------------------
----------------
0x0123
(1 rows affected)