java.sql.SQLException: Invalid Cursor position

Please tell me How to reset the cachedrowset cursor posotion in java
Karthik28071981Asked:
Who is Participating?
 
Bruce SmithConnect With a Mentor Software 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.