Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.6 KB

File metadata and controls

52 lines (37 loc) · 1.6 KB
title setNull Method (int, int, java.lang.String)
description setNull Method (int, int, java.lang.String)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerPreparedStatement.setNull (int, int, java.lang.String)
apitype Assembly

setNull Method (int, int, java.lang.String)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to a null value, given the type and name of the parameter to set.

Syntax

  
public final void setNull(int paramIndex,  
                          int sqlType,  
                          java.lang.String typeName)  

Parameters

paramIndex

An int that indicates the parameter number.

sqlType

A JDBC type code defined by java.sql.Types.

typeName

A String that indicates the fully qualified name of the parameter that is being set.

Exceptions

SQLServerException

Remarks

This setNull method is specified by the setNull method in the java.sql.PreparedStatement interface.

See Also

setNull Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class