I have loading records for storage in a SQL Server 2008 database. Each of the records has a SHA-1 hash. Obviously, storing the SHA in String form will take 80 bytes compared to 20 if they are stored as bytes.
When querying a database that is better than SQL:
- String comparison?
- Binary comparison
I need help resolving the issue of how to store hashes, as it has a huge impact on the database. Thanks for any help.
source
share