Recordset In Session!

P

Prabhat

Arpan said:
How do I store an entire recordset in one single Session variable?

Thanks,

Arpan

I will suggest you to save the recordset into Session Array and use the
array where ever you want. Go for such big session variable (either
Recordset or Array) only if you require all the fields / value of that
recordset.

Hope this will help you.
Prabhat
 
A

Arpan

Thanks, Prabhat, for your suggestion but how do I create such a Session
array to save the recordset?

Thanks once again,

Regards,

Arpan
 
P

Prabhat

Arpan said:
Thanks, Prabhat, for your suggestion but how do I create such a Session
array to save the recordset?

Thanks once again,

Regards,

Arpan

Hi,

1st you open the recordset for the SQL what ever you want and then use the
below statement to save the recordset to session array.

Session("arrRecords") = rs.GetRows

Now you can destroy your record set and use the Session("arrRecords") where
ever you want.

Hope this will help you.
Thanks
Prabhat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Recordset! 7
using recordset object through session object 1
Disconnected Recordset 1
recordset problem 14
Recordset in Javascript 4
ADO RecordSet Unicode? 0
saving recordset to XML file 12
recordset as a treeview 3

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top