SQL Flow Field Guide

BINARY_CHECKSUM

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

binary hash over values

What changes

Input
one or more columns (or *)
Output or change
int hash
Return type
int

Syntax at a glance

BINARY_CHECKSUM ( * | expression [ , ...n ] )

Work example

Create a quick checksum for a limited change-detection comparison.

Read state in the intended scope and immediately after the statement it describes. Treat host values as untrusted.

Check your work Collisions are possible and this is not a cryptographic integrity check.

Open Microsoft Learn for full syntax, permissions, and details for your version.