File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes problem with scrolling the data of resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem with scrolling the data of resultset" Watch "problem with scrolling the data of resultset" New topic
Author

problem with scrolling the data of resultset

khurram mirza
Greenhorn

Joined: Jun 10, 2001
Posts: 25
i fetch record from database in resultset object.i've to go to last record,so when i use resultset.last() it throws SQL exception saying resultset is TYPE_FORWARD_ONLY.i tried to change this attribute using setFetchDirection(ResultSet.Unknown_Direction) but same exception appears.please help me how can i directly get to last record.
khurram mirza
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
In your createStatement() method, did you specify that you would like to scroll in both directions? Also, does your JDBC driver even support it?
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with scrolling the data of resultset
 
Similar Threads
Forward only ResultSet
isLast method for result set is not working
Couldn't access bean:define variable in action class using request.getAttribute
Navigate through ResultSet
problem with isLast()!