PRB: ADO to SQL Server Through ODBC Does Not Support adAsyncFetchNonBlocking When You Use Server-Side Cursors (231834)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q231834 SYMPTOMS
If you attempt to use ActiveX Data Objects (ADO) to access SQL Server databases through the ODBC provider (MSDASQL), you will receive the following error if you specify adAsyncFetchNonBlocking with Server-side cursors:
-2147217890 lRowsOffset would position you past either end of the rowset, regardless of the cRows value specified; cRowsObtained is 0.
The following error is returned from ADO 2.5:
-2147217890 No rows were returned because the offset value moves the position before the beginning or after the end of the rowset.
NOTE: If you are using the SQLOLEDB provider you will not see this error message. However, fetching is still not supported for the cursor and it is blocked until the cursor is fully populated.
CAUSE
The adAsyncFetchNonBlocking recordset option is not supported with a Server cursor. Additional enhancements would be required for the server and client in order to implement this feature. The two way communication necessary to support adAsyncFetchNonBlocking with a server cursor is not available at this time.
RESOLUTION
adAsyncFetchNonBlocking is only supported with a Client cursor when you use 2.5 or earlier versions of MDAC.
STATUS
MDAC 2.6 supports adAsyncFetchNonBlocking for server side cursors. Earlier versions of MDAC do not support this.
REFERENCES
For more information, see the following article in the Microsoft Knowledge Base:
190606 PRB: QueryTimeout Event Not Available
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbADO260fix kbDatabase kbprb KB231834 |
---|
|