Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.81 KB

File metadata and controls

47 lines (34 loc) · 1.81 KB
title getCharacterStream Method (int)
description getCharacterStream Method (int)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerResultSet.getCharacterStream (int)
apitype Assembly

getCharacterStream Method (int)

[!INCLUDEDriver_JDBC_Download]

Retrieves the value of the designated column index in the current row of this SQLServerResultSet object as a java.io.Reader object.

Syntax

  
public java.io.Reader getCharacterStream(int columnIndex)  

Parameters

columnIndex

An int that indicates the column index.

Return Value

A Reader object.

Exceptions

SQLServerException

Remarks

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

This method will read only [!INCLUDEssNoVersion] Unicode character data types such as nchar, nvarchar, nvarchar(max), and ntext. All other data types, including the ASCII character types, will cause an exception to be thrown. To read the ASCII data types, use the getAsciiStream method.

See Also

getCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Members
SQLServerResultSet Class