| title | setNString Method (int, java.lang.String) |
|---|---|
| description | setNString Method (int, java.lang.String) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
[!INCLUDEDriver_JDBC_Download]
Sets the designated parameter to the specified String object.
public final void setNString(int parameterIndex,
java.lang.String value)
parameterIndex
An int that indicates the parameter index.
value
A String object that contains the parameter value.
This method should be used for NCHAR, NVARCHAR, NTEXT, and XML data types.
This setNString method is specified by the setNString method in the java.sql.PreparedStatement interface.