--- title: "getBigDecimal Method (int, int) | 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: - "SQLServerCallableStatement.getBigDecimal (int, int)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: d9351b35-7046-4852-a612-72d4c46b2bbb author: David-Engel ms.author: v-daenge --- # getBigDecimal Method (int, int) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the value of the designated parameter as java.math.BigDecimal given the parameter index and scale. > [!NOTE] > This method has been deprecated from the JDBC specification. Instead, you should use the [getBigDecimal (int)](../../../connect/jdbc/reference/getbigdecimal-method-int.md) method. ## Syntax ``` public java.math.BigDecimal getBigDecimal(int index, int scale) ``` #### Parameters *index* An **int** that indicates the parameter index. *scale* An **int** that indicates the number of digits to the right of the decimal point. ## Return Value A BigDecimal object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getBigDecimal method is specified by the getBigDecimal method in the java.sql.CallableStatement interface. ## See Also [getBigDecimal Method (SQLServerCallableStatement)](../../../connect/jdbc/reference/getbigdecimal-method-sqlservercallablestatement.md) [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)