SQL Flow Field Guide

@@MAX_PRECISION

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

reads configuration (@@ function)

What changes

Input
server or session configuration state
Output or change
value
Return type
tinyint

Syntax at a glance

@@MAX_PRECISION

Work example

Inspect the maximum decimal precision supported by the instance.

Read in the same session and compare before and after a controlled session setting change.

Check your work Do not use the maximum as a default because wider precision can change storage and calculations.

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