Share via


ICommandPersist::DeleteCommand

Deletes a persisted command definition.

Syntax

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.

  • DB_E_OBJECTOPEN
    An attempt was made to delete a command(view) used to create one or more open rowsets. The provider determines if the DeleteCommand succeeds.

  • E_FAIL
    A provider-specific error occurred.

  • E_INVALIDARG
    pCommandID was a null pointer.