Releases an accessor.
HRESULT ReleaseAccessor ( HACCESSOR hAccessor, DBREFCOUNT *pcRefCount);
Parameters
Return Code
Comments
IAccessor::ReleaseAccessor decrements the reference count of the accessor. If the reference count reaches zero, it releases the accessor and all resources used by the accessor. After an accessor is released, methods called with the handle to that accessor return DB_E_BADACCESSORHANDLE.
On rowsets, accessors are read-only and can be shared among threads in a free-threaded style without synchronization. The consumer must call IAccessor::ReleaseAccessor to decrement the reference count on an accessor that has been passed to a thread and is no longer needed by that thread.
This method can be called while the rowset is in a zombie state to enable the consumer to clean up after a transaction has been committed or aborted.
IAccessor::AddRefAccessor | IAccessor::CreateAccessor