setNString Method (int, java.lang.String)

Sets the designated parameter to the specified String object.

Hinweis

This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0.

public final void setNString(int parameterIndex,
                                                  java.lang.String value)

Parameter

parameterIndex

An int that indicates the parameter index.

value

A String object that contains the parameter value.

Ausnahmen

SQLServerException

Hinweise

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.

Siehe auch

Konzepte

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members