I have a strange situation using Hashbytes function of MSSQL 2008 R2.
Select password ,Hashbytes('SHA1', 'sa') returns 0x3608A6D1A05ABA23EA390E5F3B48203DBB7241F7.
Later I manually update my table field to this value, but Where Password = Hashbytes('SHA1', 'sa') doesn't give me any result. I already used varbinary, binary, varchar, nvarchar and char data types. Please suggest what can be the problem and how I can solve the problem. Thanks.