Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.72 KB

File metadata and controls

52 lines (39 loc) · 1.72 KB
title getPrecision Method (SQLServerParameterMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerParameterMetaData.getPrecision
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 8bd79484-bab6-423b-978f-d7ec7132ebeb
author David-Engel
ms.author v-daenge

getPrecision Method (SQLServerParameterMetaData)

[!INCLUDEDriver_JDBC_Download]

Retrieves the number of decimal digits of the designated parameter.

Syntax

  
public int getPrecision(int param)  

Parameters

param

An int that indicates parameter index.

Return Value

An int that indicates the precision of the designated parameter.

Exceptions

SQLServerException

Remarks

This getPrecision method is specified by the getPrecision method in the java.sql.ParameterMetaData interface.

For number types, this method gets the number of decimal digits. For character types, it gets the maximum length in characters. For binary types, it gets the maximum length in bytes. Where the number of digits is unknown, this method returns "0".

See Also

SQLServerParameterMetaData Methods
SQLServerParameterMetaData Members
SQLServerParameterMetaData Class