HashBytes () T-SQL Function

What is the most efficient way to convert the output of this function from varbinary () to varchar ()?

+4
source share
3 answers

How about this:

master.sys.fn_varbintohexstr(@binvalue) 
+6
source

For SQL Server 2008 use

 CONVERT(varchar, @binary, 1) 

1 - style 0x060D, 2 - 060D

http://msdn.microsoft.com/en-gb/library/ms187928.aspx

+2
source

CONVERT (varchar, @binary)

+1
source

Source: https://habr.com/ru/post/1276756/


All Articles