CHECKSUM
hash over values
What changes
- Input
- one or more columns (or *)
- Output or change
- int hash
- Return type
- int
Syntax at a glance
CHECKSUM ( * | expression [ ,...n ] )
Work example
Create a compact checksum across expressions for a low-cost comparison.
Read state in the intended scope and immediately after the statement it describes. Treat host values as untrusted.
Check your work A collision is possible, so confirm candidate differences with actual values.
Open Microsoft Learn for full syntax, permissions, and details for your version.