| Previous | Next |
| DB_S_NONEXTROWSET | DB_S_COMMANDREEXECUTED |
DB_S_ENDOFROWSET
OLE DB reached the rowset or chapter boundary
DB_S_ENDOFROWSET is HRESULT 265926 (0x00040EC6) from Microsoft OLE DB. The documented description is “Start or end of rowset or chapter was reached.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
The fetch reached the start or end of the rowset or chapter before satisfying the entire requested row count.
Where the result is encountered
- This result can appear in IRowset::GetNextRows; record the producing interface and method.
- This result can appear in bookmark-relative fetches; record the producing interface and method.
- It can appear in forward or backward rowset paging; record the producing interface and method.
Diagnostic sequence
- Capture the raw HRESULT
0x00040EC6immediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation. - Verify the method-specific state: the consumer processes the rows actually obtained and updates its cursor state to the documented boundary.
State to verify
The central question is whether the consumer processes the rows actually obtained and updates its cursor state to the documented boundary.
Correct handling, retry, and recovery
Consume returned rows, then stop or reverse direction according to the application. Do not discard a partial final batch merely because the HRESULT differs from S_OK.
Evidence to preserve
- Preserve requested and obtained counts.
- Preserve fetch direction.
- Preserve starting bookmark or offset.
- Preserve rowset chapter.
- Preserve next fetch position and held HROW handles.
Difference from nearby HRESULT values
DB_S_ROWLIMITEXCEEDED is an active-row capacity condition; it is a data-position boundary.
Developer and administrator guidance
Practical validation scenario
A page requests 100 rows near the end of a result set and receives 17 rows with it. The client displays all 17 and marks the page as final.
References
Looking for a different code? Search another status or error code.
