PRB: "ResultSet Can Not Re-Read Row Data"' Error When Reading Data from a JDBC ResultSet Object (824106)
The information in this article applies to:
- Microsoft SQL Server 2000 Driver for JDBC
SYMPTOMSYou have a Java application that uses JDBC to retrieve a ResultSet object by using the Microsoft SQL Server 2000 Driver for JDBC. When you
try to read a column in the ResultSet, you may receive the following error message: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]ResultSet can not re-read row data for column 1. Note In this error message, the words "can not" are a misspelling for
the word "cannot." The column number that the error message refers to
is dependent on the schema of your ResultSet object. CAUSEThis error occurs with ResultSet objects that contain a BLOB column (for example, text, ntext, or image data types). The driver cannot return a BLOB column out of order
because it does not cache all the content of BLOB data types because of size
limitations.
For any row in the ResultSet, you can read any column from left to right, and each column
should be read only one time. If you try to read columns out of order, or if
you re-read a column from the ResultSet, you may receive the error message that the "Symptoms" section
describes.To prevent the problem, read the ResultSet columns in order. STATUS This
behavior is by design.REFERENCES For additional information
about Microsoft JDBC, click the following article number to view the article in
the Microsoft Knowledge Base: 313100
HOW
TO: Get Started with Microsoft JDBC
Modification Type: | Minor | Last Reviewed: | 9/23/2003 |
---|
Keywords: | kberrmsg kbJDBC kbJava kbDatabase kbprb KB824106 kbAudDeveloper |
---|
|