Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.57 KB

max-precision-transact-sql.md

File metadata and controls

52 lines (41 loc) · 1.57 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
@@MAX_PRECISION (Transact-SQL)
@@MAX_PRECISION (Transact-SQL)
markingmyname
maghan
09/18/2017
sql
t-sql
reference
@@MAX_PRECISION_TSQL
@@MAX_PRECISION
precision [SQL Server], @@MAX_PRECISION
numeric data type, precision level
decimal data type, precision level
@@MAX_PRECISION function
data types [SQL Server], precision
TSQL

@@MAX_PRECISION (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

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

Syntax

@@MAX_PRECISION  

Return Types

tinyint

Remarks

By default, the maximum precision returns 38.

Examples

SELECT @@MAX_PRECISION AS 'Max Precision'  

See Also

Configuration Functions (Transact-SQL)
decimal and numeric (Transact-SQL)
Precision, Scale, and Length (Transact-SQL)