Compartir a través de


CDatabase::GetConnect

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;

Return Value

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

Remarks

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

Requirements

Header: afxdb.h

See Also

Concepts

CDatabase Class

CDatabase Members

Hierarchy Chart

CDatabase::OpenEx

CDatabase::Open