Convert(int,sys.fn_sqlvarbasetostr(hashbytes('md5','1522521276'))) Guide

: This internal function converts that binary hash into its string representation: '0xe4f3f000cc6a3f98f7a831a601e6e002' .

), it wraps around into a negative value in two's complement notation. : This internal function converts that binary hash

: SQL Server takes the beginning of that hex string and attempts to fit it into a 4-byte integer. Because the first 4 bytes ( 0xE4F3F000 ) represent a value larger than the maximum positive signed integer ( : This internal function converts that binary hash