Destroys the current data source and leaves the data source object in an uninitialized state.
HRESULT DestroyDataSource ();
Parameters
None.
Return Code
S_OK
The method succeeded.
E_FAIL
A provider-specific error occurred.
E_UNEXPECTED
The data source object was in an uninitialized state.
DB_E_NOTSUPPORTED
The provider does not support this method.
DB_SEC_E_PERMISSIONDENIED
The consumer did not have permission to destroy the current data source.
Comments
DestroyDataSource destroys the current data source and leaves the data source object in an uninitialized state. It is an error to call DestroyDataSource when there are open sessions, commands, or rowsets on the data source object. The consumer must release all interface pointers on all sessions, commands, and rowsets on the data source object before calling DestroyDataSource.
See Also