OLE DB Programmer's Reference

ICommandPersist::DeleteCommand

Deletes a persisted command definition.

HRESULT DeleteCommand(
   DBID *pCommandID);

Parameters

pCommandID
[in]
The DBID of the command to be deleted.

Return Code

S_OK
The command was successfully deleted.
DB_E_BADCOMMANDID
The command specified in *pCommandID does not exist.
E_FAIL
A provider-specific error occurred.
E_INVALIDARG
pCommandID was a null pointer.