Share via


CCommand::Prepare

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CCommand::Prepare.

Validates and optimizes the current command.

Syntax

  
      HRESULT CCommandBase::Prepare(  
   ULONG cExpectedRuns = 0   
) throw( );  

Parameters

cExpectedRuns
[in] The number of times you expect to execute the command.

Return Value

A standard HRESULT.

Remarks

This method wraps the OLE DB method ICommandPrepare::Prepare.

Requirements

Header: atldbcli.h

See Also

CCommand Class