CCommand::Create

HRESULT Create( const CSession& session, LPCTSTR szCommand, REFGUID guidCommand = DBGUID_DEFAULT );

Return Value

A standard HRESULT.

Parameters

session

[in] A session on which to create the command.

szCommand

[in] A pointer to the text of the command to be set.

guidCommand

[in] A GUID that specifies the syntax and general rules for the provider to use in parsing the command text. For a complete description of dialects, see ICommandText::GetCommandText in the OLE DB Programmer's Reference.

Remarks

Calls CCommand::CreateCommand to create a new command for the specified session, then calls ICommandText::SetCommandText to set the command text.

CCommand OverviewClass Members