Forums Register Login

Where does the ResultSet reside?

+Pie Number of slices to send: Send
hi:
Where does the returned ResultSet reside? After a SQL statement executed and a ResultSet is returned, is it still in the dbms, or it is brought to the application server memory?
If it resides in the memory, why it is gone after the statemet created it is closed?
If it reside on the dbms, how can I bring it to the memory?
thanks
+Pie Number of slices to send: Send
Hannah,
A regular result set resides in memory on the application server. I think there are some settings where you can get it to only load the first X rows and go back to the database to get more. But by default, it's all in memory.
+Pie Number of slices to send: Send
Hit Jeanne:
Thanks for your replay. If the ResultSet lives in the application memory, why it is gone when the connection, or the statement created are closed? and how can I bring to the memory a part of the result set?
thanks
+Pie Number of slices to send: Send
javax.sql.RowSet
+Pie Number of slices to send: Send
javax.sql.RowSet interface is not supported by SQL 2000 ..!!
+Pie Number of slices to send: Send
Hannah,
You can loop through the result set and put the rows in your own data structure. An ArrayList is common for this sort of thing.
+Pie Number of slices to send: Send
hi:
I know I can user transfer objects to store my data from the ResultSet, but when the ResultSet is huge, it will takes up a lot of memory. I know there is another solution, is to user RowSet, but I am using SQL2k, and it doesn't support RowSet.
any other suggestions.
+Pie Number of slices to send: Send
Hanna,
What are you doing with the data after you have it? Is it something you can do while the resultset is open? For example if you are writing to a file, you can do that as you loop through the result set.
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1209 times.
Similar Threads
JSP problem
RowSet.. and SQL2k
Trouble submitting form with 'onsubmit' handler defined
Error: package xxxx does not exist
Can we extract the data from resultset after the connection get closed.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:55:46.