sql server - Calculating MD5 HashBytes for Nvarchar(max) column is possible in SQL? -


i have table column data type nvarchar(max), column have data more 8000 characters.

mytext navarchar(max) 

i want calculate hash value of column, using following code in ms sql 2008/r2

select hashbytes('md5',column_name) 

but getting error as,

string or binary data truncated. 

is possible calculate hash value in nvarchar(max) field in sql query.

or there other ways it.

thanks in advance.

allowed input values limited 8000 bytes mentioned.

try:

select master.sys.fn_repl_hash_binary(cast(column_name varbinary(max)))

for operation have disable fips validated cryptographic algorithms: http://blog.aggregatedintelligence.com/2007/10/fips-validated-cryptographic-algorithms.html


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -