What does HRESULT 0x00040EC5 (DB_S_NONEXTROWSET) mean?

 
Previous Next
DB_S_BOOKMARKSKIPPED DB_S_ENDOFROWSET

DB_S_NONEXTROWSET

OLE DB has no additional rowset

DB_S_NONEXTROWSET is HRESULT 265925 (0x00040EC5) from Microsoft OLE DB. The documented description is “No more rowsets.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.

The current multiple-result operation completed and there is no next rowset to return.

Where the result is encountered

  • This result can appear in stored procedures returning several results; record the producing interface and method.
  • This result can appear in IMultipleResults-style iteration; record the producing interface and method.
  • It can appear in batch commands mixing rowsets and row counts; record the producing interface and method.

State to verify

The central question is whether all previously returned results were consumed and released before the consumer terminates result iteration.

Evidence to preserve

  • Preserve command text or procedure name.
  • Preserve result index and type.
  • Preserve row counts and output parameters.
  • Preserve open rowset interfaces.
  • Preserve transaction state after the final result.

Correct handling, retry, and recovery

End result enumeration normally, release the current result, and then read output parameters or commit according to the provider contract.

Diagnostic sequence

  • Capture the raw HRESULT 0x00040EC5 immediately after the returning method and record whether the caller used SUCCEEDED, FAILED, equality testing, or exception translation.
  • Verify the method-specific state: all previously returned results were consumed and released before the consumer terminates result iteration.

Practical validation scenario

A procedure returns two rowsets followed by output parameters. After consuming the second rowset, the client receives it and proceeds to read outputs without logging a failure.

Difference from nearby HRESULT values

DB_S_NORESULT can report no more result object for a particular call; it specifically states there is no next rowset.

Developer and administrator guidance

References


Looking for a different code? Search another status or error code.