Share via


ICommandPrepare::Unprepare

Discards the current command execution plan.

Syntax

HRESULT Unprepare();

Parameters

None.

Return Code

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

  • DB_E_OBJECTOPEN
    A rowset was open on the command.

Comments

This method has no effect if the command was not prepared; the provider returns S_OK.

See Also

Reference

ICommandPrepare::Prepare