Hi All,
I want to use hashbytes to generage a hash, and then insert into another table. I'm wondering what kind of definition to use when creating the table.
Hashbytes will be used to generate a hash of integers, however it only works on varchar data type, so I have first converted to varchar and then used hashbytes. My question is that I have 12 columns that I need to generate a hash from, and I'm not sure of the definition of the hash column itself.
Create table #1 (Hash_Column varbinary(?))
Insert into #1
select HASHBYTE('MD5', Col1 + Col2)
Thanks in advance.