ADO fails to release Recordset cursor after opening disconnected Recordset 
Author Message
 ADO fails to release Recordset cursor after opening disconnected Recordset

Hi,

I have a problem working with ADO disconnected recordsets.

I use microsoft OLE DB provider for Oracle with MSDataShape OLE DB Service.
I open a recordset with all parameters set to be a disconnected recordset
(all by the book). However, after setting active connection to null,
recordset, fails to release a cursor allocated to it in DB.

The release of that cursor occurs only when the Recordset object is
released.
This behavior is quite dangerous (along with absence of garbage collection
in VB).
When by any chance, VB does not releases DISCONNECTED recordset, the DB
resource remains allocated and the program crashes when maximum cursor limit
is reached.

The way around this problem, is making a copy of the recordset through
stream object.
This way is very unefficient (copying a mid-sized recordset is about a
second long
on 700 MHZ machine!).

1. Is there a way to assure cursor released all its resources, without
making a copy?
2. What is the most efficient way to full copy a recordset?

Thanks!



Mon, 08 Sep 2003 06:52:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Open ADO recordset on another ADO recordset - possible?

2. Disconnected recordsets not releasing connections

3. Opening recordsets(OpenRecordset vs. Recordset.Open)

4. Disconnected Recordsets in ADO.NET?

5. sub records in ADO disconnected recordset

6. Disconnected ADO Recordset-Updating

7. Copying Disconnected ADO Recordset

8. connecting a disconnected ADO recordset

9. Run SQL Statement Against Disconnected ADO Recordset

10. Disconnected ADO Recordset w/ a Stored Procedure?

11. ADO Disconnected Recordset type mismatch error

12. ASP and ADO disconnected recordsets

 

 
Powered by phpBB® Forum Software