@@MAX_PRECISION
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.