--- title: "setNull Method (java.lang.String, int, java.lang.String) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: "sql-non-specified" ms.prod_service: "drivers" ms.service: "" ms.component: "jdbc" ms.reviewer: "" ms.suite: "sql" ms.technology: - "drivers" ms.tgt_pltfrm: "" ms.topic: "article" apiname: - "SQLServerCallableStatement.setNull (java.lang.String, int, java.lang.String)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 16ff77f9-7928-415c-abf6-97ed59e3e396 caps.latest.revision: 9 author: "MightyPen" ms.author: "genemi" manager: "jhubbard" ms.workload: "Inactive" --- # setNull Method (java.lang.String, int, java.lang.String) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to a null value, given the type and name of the parameter to set. ## Syntax ``` public void setNull(java.lang.String sCol, int nType, java.lang.String sTypeName) ``` #### Parameters *sCol* A **String** contthat contains aining the parameter name. *nType* A JDBC type code that is defined by java.sql.Types. *sTypeName* A **String** that indicates the fully qualified name of the parameter that is being set. ## 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)