--- title: "getBoolean Method (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.getBoolean (int)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 4d9db847-df22-40ab-8a5c-ec9158c576ca author: David-Engel ms.author: v-daenge --- # getBoolean Method (int) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the value of the designated parameter as a **boolean** value given the parameter index. ## Syntax ``` public boolean getBoolean(int index) ``` #### Parameters *index* An **int** that indicates the parameter index. ## Return Value A **boolean** value. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getBoolean method is specified by the getBoolean method in the java.sql.CallableStatement interface. ## See Also [getBoolean Method (SQLServerCallableStatement)](../../../connect/jdbc/reference/getboolean-method-sqlservercallablestatement.md) [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)