ICommandTextImpl::GetCommandText
HRESULT GetCommandText( GUID * pguidDialect**, LPOLESTR *** ppwszCommand );
See 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.