CDaoRecordset::GetDefaultSQL

virtual CString GetDefaultSQL( );

Return Value

A CString that contains the default SQL statement.

Remarks

The framework calls this member function to get the default SQL statement on which the recordset is based. This might be a table name or an SQL SELECT statement.

You indirectly define the default SQL statement by declaring your recordset class with ClassWizard, and ClassWizard performs this task for you.

If you pass a null SQL string to Open, then this function is called to determine the table name or SQL for your recordset.

For more information about connecting to databases, see the article DAO: Creating, Opening, and Closing DAO Objects in Visual C++ Programmer's Guide.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::GetDefaultDBName, CDaoRecordset::GetName, CDaoRecordset::GetSQL, CDaoRecordset::GetType