Isaac,

The jdbc implementation varies from driver to driver and db to db. So not all
methods work in all drivers. For instance I use msql a lot and there is no way
to get the number of rows returned without reading them all in like:

while(rs.next()){

do something
}

You may be experiencing the same problem

Gary Lyons

Isaac Zinner wrote:

> Hi  All !
>
> I'm trying to get row no. from a big result set (>2000 rows).
> When I try rs.absolute with a value higher than 1800~  and then rs.getRow I
> get   0.(same with negative no.)
> When I try rs.last() and then rs.getRow I still get 0 ( tried previous()
> too). However when I print the rows I do get them from
> the end correctly . How do I get the cursor to be positioned on the last
> row so I can get it's no. (with getRow) and not  0.
>
> Thanks
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to