13 |
If you have access to the prepared statement that results in this resultset, you can use
This prepares your statement in a way that you can rewind the cursor. This is also documented in the ResultSet Javadoc:
In general, however, forwarding and rewinding cursors may be quite inefficient for large result sets. Another option in SQL Server would be to calculate the total number of rows directly in your SQL statement:
|
Thursday, June 13, 2013
ResultSet + prepared statement
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment