CdbTableDef::SetConnect, GetConnect Property

Sets or returns a value that provides information about the source of an open connection, an open database, a database used in a pass-through query, or a linked table.

Syntax

VOIDSetConnect(LPCTSTR pstr);

CStringGetConnect(VOID);

Set Parameters

Type Example Description
LPCTSTR pstr A pointer to a string composed of a database type specifier and zero or more parameters separated by semicolons. The Connect property passes additional information to ODBC and certain ISAM drivers as needed.

Remarks

For a TableDef object that represents a linked table, the Connect property setting consists of one or two parts (a database type specifier and a path to the database), each of which ends with a semicolon.