--- title: "setNull 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.setNull" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 90dcd2f1-ad58-440c-8bf2-0f146fa727a3 author: David-Engel ms.author: v-daenge --- # setNull Method (SQLServerPreparedStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to a null value, given the type of parameter to set. ## Overload List |Name|Description| |----------|-----------------| |[setNull (int, int)](../../../connect/jdbc/reference/setnull-method-int-int.md)|Sets the designated parameter to a null value, given the type of parameter to set.| |[setNull (int, int, java.lang.String)](../../../connect/jdbc/reference/setnull-method-int-int-java-lang-string.md)|Sets the designated parameter to a null value, given the type and name of the parameter to set.| ## See Also [SQLServerPreparedStatement Members](../../../connect/jdbc/reference/sqlserverpreparedstatement-members.md) [SQLServerPreparedStatement Class](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md)