SQL Flow Field Guide

Bit manipulation functions (overview)

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

none (documentation, rules or examples)

What changes

Input
none
Output or change
none

Syntax at a glance

n/a (reference page)

Work example

Inspect or change individual bits when a documented binary format assigns meaning to fixed positions.

Name the bit offset and test the zero-based least significant position for the input type.

Check your work The same numeric value can have a different bit representation when its SQL type changes.

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