WilburSmith - Thursday, December 28, 2017 11:14 AM
This value: 0xB54E921E9BF81A19E76D8D15D16AD000, is 16 bytes. HASHBYTES did NOT add trailing bytes to the value. If the final two zeros are being dropped, it is not HASHBYTES causing the problem. I get the same value whether I run HASHBYTES alone or cast it VARBINARY(40).