declare @b binary(4), @str varchar(255)select @b = 45545646exec master..xp_varbintohexstr @b, @str outprint @str