@@MAX_PRECISION (Transact-SQL)
Applies to: 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.
Transact-SQL syntax conventions
Syntax
@@MAX_PRECISION
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions 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)
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про