IDBDataSourceAdmin::DestroyDataSource

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.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net