| Previous | Next |
| DB_S_ENDOFROWSET | DB_S_BUFFERFULL |
DB_S_COMMANDREEXECUTED
OLE DB command was reexecuted to satisfy the operation
DB_S_COMMANDREEXECUTED is HRESULT 265927 (0x00040EC7) from Microsoft OLE DB. The documented description is “Command was reexecuted.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
The provider completed the request by reexecuting the command, which can refresh data and invalidate assumptions about a previous execution snapshot.
Where the result is encountered
- This result can appear in rowset repositioning or resynchronization; record the producing interface and method.
- This result can appear in providers without a cheaper cursor operation; record the producing interface and method.
- It can appear in commands whose rowset must be recreated; record the producing interface and method.
State to verify
The central question is whether reexecution side effects, parameters, transaction context, and result schema are acceptable and known to the consumer.
Evidence to preserve
- Preserve command text and parameter values.
- Preserve execution count and timestamps.
- Preserve transaction identifier.
- Preserve rowset schema before and after.
- Preserve server-side effects or trigger activity.
Correct handling, retry, and recovery
Accept the new rowset only if reexecution is safe. Commands with side effects require idempotency protection or a design that prevents automatic reexecution.
Diagnostic sequence
- Capture the raw HRESULT
0x00040EC7immediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation. - Verify the method-specific state: reexecution side effects, parameters, transaction context, and result schema are acceptable and known to the consumer.
Practical validation scenario
A provider reexecutes a read-only query to reposition a scrollable view. The client detects the new snapshot generation and refreshes cached bookmarks rather than mixing them with the old rowset.
Difference from nearby HRESULT values
DB_S_COLUMNSCHANGED reports schema drift during repositioning; it reports the provider strategy used to complete the request.
Developer and administrator guidance
References
Looking for a different code? Search another status or error code.
