Hi Shiva,
We can have a prior idea of how big the ResultSet going to be , by slightly changing your SQL statement like this.
1.
This SQL statment will return the TOTAL rows in 'users' table. It could be 1000. So the returned ResultSet will have only one row with one col whose value is 1000. It will not retrive all 1000 rows CONTENTS.
2. If you are going to use a WHERE clause in your SQL statement, still you can have prior idea of how big the ResultSet going to be without actaully retriving all the database rows which mathes this WHERE clause. For ex.
This statement will get the NO OF ROWS ( may be 10) (not all the content of rows in the 'users' table) where the firstName CONTAINS the
word 'shiva'
So before you run your actaul SQL query , run this count(*) like SQL statements and use this info for whatever use you needed it.
regds
maha anna
[This message has been edited by maha anna (edited December 03, 2000).]