| Previous | Next |
| DB_S_DIALECTIGNORED | DB_S_UNWANTEDREASON |
DB_S_UNWANTEDPHASE
OLE DB consumer declines notifications for a phase
DB_S_UNWANTEDPHASE is HRESULT 265934 (0x00040ECE) from Microsoft OLE DB. The documented description is “Consumer does not want to receive further notification calls for this phase.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
The notification sink requests that the provider stop sending callbacks for the current phase of an operation.
Evidence to preserve
- Preserve operation, reason, and phase values.
- Preserve sink identity.
- Preserve callbacks before and after the return.
- Preserve provider interpretation.
- Preserve application state that motivated suppression.
Where the result is encountered
- This result can appear in IRowsetNotify-style multi-phase callbacks; record the producing interface and method.
- This result can appear in consumers interested in after-event but not pre-event notifications; record the producing interface and method.
- It can appear in notification optimization in high-volume rowsets; record the producing interface and method.
State to verify
The central question is whether the suppressed phase is precisely identified and skipping it does not remove validation or veto behavior the consumer relies on.
Diagnostic sequence
- Capture the raw HRESULT
0x00040ECEimmediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation. - Verify the method-specific state: the suppressed phase is precisely identified and skipping it does not remove validation or veto behavior the consumer relies on.
Difference from nearby HRESULT values
DB_S_UNWANTEDOPERATION suppresses the operation; it narrows suppression to a phase.
Correct handling, retry, and recovery
Honor the phase-level opt-out while keeping other phases active. Document whether the provider applies the choice to one event or the remaining lifetime of the rowset.
Practical validation scenario
A logging sink needs only completion notifications and opts out of intermediate progress phases. The provider reduces callback traffic while final audit events remain enabled.
Developer and administrator guidance
References
Looking for a different code? Search another status or error code.
