CRecordset::GetDefaultConnect

virtual CString GetDefaultConnect( );

Return Value

A CString that contains the default connect string.

Remarks

The framework calls this member function to get the default connect string for the data source on which the recordset is based. ClassWizard implements this function for you by identifying the same data source you use in ClassWizard to get information about tables and columns. You will probably find it convenient to rely on this default connection while developing your application. But the default connection may not be appropriate for users of your application. If that is the case, you should reimplement this function, discarding ClassWizard’s version. For more information about connect strings, see the article Data Source (ODBC) in Visual C++ Programmer’s Guide.

CRecordset OverviewClass MembersHierarchy Chart