| title | @@MAX_PRECISION (Transact-SQL) | |||||
|---|---|---|---|---|---|---|
| description | @@MAX_PRECISION (Transact-SQL) | |||||
| author | markingmyname | |||||
| ms.author | maghan | |||||
| ms.date | 09/18/2017 | |||||
| ms.service | sql | |||||
| ms.subservice | t-sql | |||||
| ms.topic | reference | |||||
| ms.custom |
|
|||||
| f1_keywords |
|
|||||
| helpviewer_keywords |
|
|||||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
Returns the precision level used by decimal and numeric data types as currently set in the server.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
@@MAX_PRECISION
tinyint
By default, the maximum precision returns 38.
SELECT @@MAX_PRECISION AS 'Max Precision' Configuration Functions (Transact-SQL)
decimal and numeric (Transact-SQL)
Precision, Scale, and Length (Transact-SQL)