CDaoQueryDef::GetSQL

CString GetSQL( );
throw( CDaoException, CMemoryException );

Return Value

The SQL statement that defines the query on which the querydef is based.

Remarks

Call this member function to retrieve the SQL statement that defines the query on which the querydef is based. You will then probably parse the string for keywords, table names, and so on.

For information about querydefs, see the article DAO Querydef in Visual C++ Programmer's Guide. For related information, see the topics "SQL Property", "Comparison of Microsoft Jet Database Engine SQL and ANSI SQL", and "Querying a Database with SQL in Code" in DAO Help.

CDaoQueryDef OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::SetSQL, CDaoQueryDef::GetName, CDaoQueryDef::GetReturnsRecords, CDaoQueryDef::GetODBCTimeout