Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Configuration FunctionsRSS Feeds

@@MAX_PRECISION - MAX_PRECISION Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2414

This article explains about @@MAX_PRECISION function in sql server with examples.

@@MAX_PRECISION function is used to get maximum precision level used by decimal and numeric data types currently set in the server. By default the max precision is 38.

Syntax of @@MAX_PRECISION Function :

@@MAX_PRECISION

Return type of @@MAX_PRECISION function is tinyint.



Examples of @@MAX_PRECISION Function :

Example 1 : Use of @@MAX_PRECISION function in select clause

SELECT @@MAX_PRECISION

Output
38

Above example returns maximum precision level.
  
Share: 


Didn't find what you were looking for? Find more on @@MAX_PRECISION - MAX_PRECISION Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of @@MAX_PRECISION - MAX_PRECISION Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!