[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1770
  • Last Modified:

java.sql.SQLException: Invalid Cursor position

Please tell me How to reset the cachedrowset cursor posotion in java
0
Karthik28071981
Asked:
Karthik28071981
  • 3
1 Solution
 
Bruce SmithSoftware Engineer IICommented:
crs.beforeFirst();
0
 
Bruce SmithSoftware Engineer IICommented:
I'd have to see more code to see exactly why you're getting this error. But the .beforeFirst() method will set the cursor position at the beginning so you can re-loop through your cachedrowset object.

Cheers
0
 
Bruce SmithSoftware Engineer IICommented:
Did this help solve your problem?
0
 
mrcoffee365Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now