| Previous | Next |
| DB_S_GOALCHANGED | DB_S_DIALECTIGNORED |
DB_S_UNWANTEDOPERATION
OLE DB consumer declines further notifications for an operation
DB_S_UNWANTEDOPERATION is HRESULT 265932 (0x00040ECC) from Microsoft OLE DB. The documented description is “Consumer does not want to receive further notification calls for this operation.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
A notification sink successfully tells the provider that it no longer wants callbacks for the current operation.
Where the result is encountered
- This result can appear in rowset notification callbacks; record the producing interface and method.
- This result can appear in consumer-controlled event suppression; record the producing interface and method.
- It can appear in providers honoring sink return codes during multi-phase operations; record the producing interface and method.
Diagnostic sequence
- Capture the raw HRESULT
0x00040ECCimmediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation.
State to verify
The central question is whether only the intended operation is suppressed and the provider’s remaining notification contract is understood.
Correct handling, retry, and recovery
Stop callbacks for that operation as requested and maintain any other subscribed notifications. Consumers should return this status deliberately, not as a generic way to ignore errors.
Evidence to preserve
- Preserve notification interface and sink identity.
- Preserve operation reason and phase.
- Preserve return code history.
- Preserve provider behavior after suppression.
- Preserve outstanding asynchronous work.
Difference from nearby HRESULT values
DB_S_UNWANTEDPHASE suppresses a phase, and DB_S_UNWANTEDREASON suppresses a reason; it targets the operation.
Practical validation scenario
A UI consumer no longer needs row-position notifications for a canceled refresh. It returns it, while retaining schema-change notifications for the rowset.
References
Looking for a different code? Search another status or error code.