| Previous | Next |
| ERROR_ROWSNOTRELEASED | ERROR_ERRORS_ENCOUNTERED |
ERROR_BAD_ACCESSOR_FLAGS
column-binding accessor flags are invalid or unsupported by the provider.
ERROR_BAD_ACCESSOR_FLAGS identifies this condition: An accessor describes how consumer buffers map to row columns. This result means the provider could not interpret the supplied accessor flags, often because flags conflict with the accessor type or requested operation.
Where the result appears
- OLE DB accessor creation.
- parameter and row-data bindings.
- providers with partial optional-feature support.
- ports between providers with different flag capabilities.
What to collect
- complete flag bitmask.
- accessor type and binding array.
- provider property set and version.
- column ordinal, data type, offset, and length for each binding.
Handling and recovery
Build the accessor from flags the provider advertises and reject unknown combinations before the call. Keep parameter accessors separate from row-data accessors when required, and verify structure initialization and size fields.
Common misinterpretation
Changing buffer size does not repair an invalid flag combination. Diagnose the accessor metadata before examining returned row bytes.
References
Looking for a different code? Search another status or error code.