How to get all opened ADO resultsets? 
Author Message
 How to get all opened ADO resultsets?

In RDO I can do
for each rs in rd_conn.rdoresultsets
    rs.close
    set rs=nothing
next

I'd like to do the same thing,close all resultsets I have opened  during
the process, before I exit out from the program.
How do I do that in ADO?

Thanks

Grace

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Tue, 12 Feb 2002 03:00:00 GMT  
 How to get all opened ADO resultsets?
ADO was designed as a very flat object model.  One of the main drivers
behind it was to create a thin data access model for the internet.  Within
this model, it is usually good to get a connection to the database as late
as possible and to release that connection as quickly as possible.
Therefore you would not keep a lot of connections and recordsets open in am
application.

So there is no strict hierarchy in ADO like there was in RDO and therefore a
recordsets collection does not exist.  You can create your own collection
object if you want to store all of the recordset that you have open and
delete them from the collection as you close them.

--
Matthew Arnheiter
Flash Creative Management
http://www.flashcreative.com

Quote:

> In RDO I can do
> for each rs in rd_conn.rdoresultsets
>     rs.close
>     set rs=nothing
> next

> I'd like to do the same thing,close all resultsets I have opened  during
> the process, before I exit out from the program.
> How do I do that in ADO?

> Thanks

> Grace

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.



Tue, 12 Feb 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting a resultset from a SELECT query embedded in another query

2. RDO resultset gets value, loses it

3. Private Resultset vs. Public Resultset

4. Private Resultset vs. Public Resultset

5. RDO I open a keyset but I get a static resultset

6. ADO.Net/ASP.Net strategies for tabulating resultsets

7. Returning resultsets from Oracle stored procedures via ADO?

8. ADO and Sybase Stored Proc Resultset ?

9. Strange Problem With ADO Resultset

10. ADO and Sybase Stored Proc Resultset ?

11. Limiting resultset size in ADO

12. AS/400 and RDO/ADO stored procedure with output params and resultsets

 

 
Powered by phpBB® Forum Software