--- title: "setDouble Method (SQLServerPreparedStatement) | 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: - "SQLServerPreparedStatement.setDouble" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 295c16b7-1532-40e1-93ef-64462a2c0ab6 author: David-Engel ms.author: v-daenge --- # setDouble Method (SQLServerPreparedStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to the given **double** value. ## Syntax ``` public final void setDouble(int n, double x) ``` #### Parameters *n* An **int** that indicates the parameter number. *x* A **double** value. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setDouble method is specified by the setDouble method in the java.sql.PreparedStatement interface. ## See Also [SQLServerPreparedStatement Members](../../../connect/jdbc/reference/sqlserverpreparedstatement-members.md) [SQLServerPreparedStatement Class](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md)