Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
| OLE DB Programmer's Reference |
Destroys the current data store.
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 store.
Comments
IDBDataSourceAdmin::DestroyDataSource destroys the current data store. Any open OLE DB objects on this data source, such as sessions, commands, rowsets, rows, and views, must be released before calling this method. Consumers cannot destroy a data store if they have not successfully connected to the provider by initializing the data source object.
See Also
IDBDataSourceAdmin::CreateDataSource
1998-2001 Microsoft Corporation. All rights reserved.