--- title: "setNull Method (java.lang.String, 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.setNull (java.lang.String, int)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: e1d7e267-d9de-407a-b1a9-abdc2623478d author: David-Engel ms.author: v-daenge --- # setNull Method (java.lang.String, int) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to a null value, given the type of parameter to set. ## Syntax ``` public void setNull(java.lang.String sCol, int nType) ``` #### Parameters *sCol* A **String** that contains the parameter name. *nType* A JDBC type code that is defined by java.sql.Types. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setNull method is specified by the setNull method in the java.sql.CallableStatement interface. ## See Also [setNull Method (SQLServerCallableStatement)](../../../connect/jdbc/reference/setnull-method-sqlservercallablestatement.md) [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)