Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.87 KB

File metadata and controls

58 lines (46 loc) · 1.87 KB
description @@MAX_PRECISION (Transact-SQL)
title @@MAX_PRECISION (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 09/18/2017
ms.prod sql
ms.prod_service database-engine, sql-database
ms.reviewer
ms.technology t-sql
ms.topic reference
f1_keywords
@@MAX_PRECISION_TSQL
@@MAX_PRECISION
dev_langs
TSQL
helpviewer_keywords
precision [SQL Server], @@MAX_PRECISION
numeric data type, precision level
decimal data type, precision level
@@MAX_PRECISION function
data types [SQL Server], precision
ms.assetid 9e7158a1-e503-422a-b326-3c9b06e181b2
author cawrites
ms.author chadam

@@MAX_PRECISION (Transact-SQL)

[!INCLUDE SQL Server SQL Database]

Returns the precision level used by decimal and numeric data types as currently set in the server.

Topic link icon Transact-SQL Syntax Conventions

Syntax

@@MAX_PRECISION  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

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)