Compartir a través de


getNString Method (int) (SQLServerResultSet)

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

Nota

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

public java.lang.String getNString(int columnIndex)

Parámetros

columnIndex

An int that indicates the column index.

Valor devuelto

A String object.

Excepciones

SQLServerException

Observaciones

This getNString method is specified by the getNString method in the java.sql.SQLServerResultSet 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.

Vea también

Conceptos

getNString Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members