Condividi tramite


getNCharacterStream Method (int) (SQLServerResultSet)

Retrieves the value of a designated column in the current row of the SQLServerResultSet object as a Reader object.

Nota

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

public java.io.Reader getNCharacterStream(int columnIndex)

Parametri

columnIndex

An int that indicates the column index.

Valore restituito

A Reader object.

Eccezioni

SQLServerException

Osservazioni

This getNCharacterStream method is specified by the getNCharacterStream method in the java.sql.ResultSet interface.

This method can be used to retrieve the value of an nvarchar, nchar, nvarchar(max), ntext, or xml column in the current row of this SQLServerResultSet object. If you try to use this method to retrieve values of other data types, an exception will be thrown.

Vedere anche

Concetti

getNCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members