PRB: ADO Recordset Open Method May Behave Synchronously Even if adAsyncFetch is Specified (224332)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.01
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
This article was previously published under Q224332 SYMPTOMS
You may see the following symptoms, even though you've specified adAsyncFetch: - The FetchComplete event is never raised.
- When stepping through the code, the line after the call to the Open method is not reached until the Open method call has completed.
NOTE: The FetchComplete and FetchProgress events fire without error in Microsoft Data Access Components version 2.7.
CAUSE
When a recordset is opened with adAsyncFetch, only those records that are not returned during the initial fetch of records are asynchronously retrieved. If all of the records are returned in the initial fetch, no asynchronous fetching occurs, and the FetchComplete event is never raised.
RESOLUTION
If you are using a dual processor you then also need to set the "Background Fetch Size" to a low value such as 1.
STATUSThis problem was corrected in ADO 2.6.
REFERENCES
For more information on the Initial Fetch Size property, please refer to the example provided in the following article: "What's New in ADO 2.0."
For additional information on the adAsyncFetch flag, please refer to the Microsoft ADO Programmer's Reference, under "Open Method (ADO Recordset)."
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDatabase kbDSupport kbprb KB224332 |
---|
|