Call this member function as part of the process of setting up a SQL pass-through query to an external database.
void SetReturnsRecords( BOOL bReturnsRecords );
Pass TRUE if the query on an external database returns records; otherwise, FALSE.
In such a case, you must create the querydef and set its properties using other CDaoQueryDef member functions. For a description of external databases, see SetConnect.