Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining


Call this member function to retrieve the connection string used during the call to OpenEx or Open that connected the CDatabase object to a data source.

const CString GetConnect( ) const;

A const CString containing the connection string if OpenEx or Open has been called; otherwise, an empty string.

See CDatabase::Open for a description of how the connection string is created.

Header: afxdb.h

© 2015 Microsoft