• Lowell - Monday, July 17, 2017 10:02 AM

    Hashbytes is a varbinary(8000) return value, so you need a larger column, and then you are all set.
    you do NOT need to filter or edit your columns for dashes or anything...the data is the data, so just hash the data without fiddling with it.
    https://docs.microsoft.com/en-us/sql/t-sql/functions/hashbytes-transact-sql

    Return Value

    varbinary (maximum 8000 bytes)

    That is the maximum, but the number of bytes returned is based on the hashing algorithm used:
    The output conforms to the algorithm standard: 128 bits (16 bytes) for MD2, MD4, and MD5; 160 bits (20 bytes) for SHA and SHA1; 256 bits (32 bytes) for SHA2_256, and 512 bits (64 bytes) for SHA2_512.