CDaoQueryDef::GetConnect
Call this member function to get the connection string associated with the querydef's data source.
CString GetConnect( );
Возвращаемое значение
A CString containing the connection string for the querydef.
Заметки
This function is used only with ODBC data sources and certain ISAM drivers. It is not used with Microsoft Jet (.MDB) databases; in this case, GetConnect returns an empty string. For more information, see SetConnect.
Совет. |
---|
The preferred way to work with ODBC tables is to attach them to an .MDB database. For more information, see the topic "Accessing External Databases with DAO" in DAO Help. |
For information about connection strings, see the topic "Connect Property" in DAO Help.
Требования
Header: afxdao.h