Partager via


updateCharacterStream Method (java.lang.String, java.io.Reader, int)

Updates the designated column with a character stream value given the column name and length.

public void updateCharacterStream(java.lang.String columnName,
                                  java.io.Reader reader,
                                  int length)

Paramètres

columnName

A String that contains the column name.

reader

A Reader object.

length

An int that indicates the length of the stream.

Exceptions

SQLServerException

Notes

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

This method passes Unicode characters from a Reader object to selected text and binary columns. This includes all text columns and binary, varbinary, varbinary(max), image, and xml columns, but not udt columns. When the length is set to -1, the stream is allowed, but a specific length is not required. If the Reader passes a stream of a different length than what is specified, the JDBC driver will stop the update while it tries to preserve the connection and the current transaction.

Voir aussi

Référence

SQLServerResultSet Class

Concepts

updateCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members