HRESULT GetCommandText( GUID * pguidDialect, LPOLESTR * ppwszCommand );
See ICommandText::GetCommandText in the OLE DB Programmer's Reference. The pguidDialect parameter is ignored by default.
Remarks
Returns the text command set by the last call to SetCommandText.