PRB: GetNextRows Returns DB_S_ROWLIMITEXCEEDED When DBPROP_MAXOPENROWS Is 0 (294133)
The information in this article applies to:
- Microsoft Data Access Components 2.6
This article was previously published under Q294133 SYMPTOMS Calling the IRowset::GetNextRows method and requesting a large number of rows (for instance, 5000)
may return a value of DB_S_ROWLIMITEXCEEDED even though the requested number of
rows does not exceed the total number of active rows supported by the
rowset. The actual number of rows that must be requested for this
error to occur may vary, depending on the size of the row and the OLE DB
provider that is used. This error may be returned from the following
Microsoft OLE DB providers:
- Microsoft OLE DB Provider for SQL Server
(SQLOLEDB)
- Microsoft OLE DB Provider for ODBC drivers
(MSDASQL)
- Microsoft OLE DB Provider for Oracle (MSDAORA)
RESOLUTION To work around this problem, fetch a smaller number of rows
when calling GetNextRows. You can determine how many rows were successfully fetched by
examining the pcRowsObtained output value that is returned in the GetNextRows call. This value tells you how many rows were actually fetched,
and you can then continue fetching until no rows remain.
Modification Type: | Major | Last Reviewed: | 10/31/2003 |
---|
Keywords: | kbnofix kbprb KB294133 kbAudDeveloper |
---|
|