|
|
|
|
CtDatabase (Property) In french: CxBaseDeDonnées
Available only with this kind of connection
The CtDatabase property is used to set the OLE DB data source when connecting to a specific table via OLE DB. You can: - Get the OLE DB data source used to connect to a table via OLE DB.
This source can correspond to:- the data source defined in the data model editor,
- the data source specified in HConnect (if this function was used).
This property can be used for a data file defined in the data model editor or through programming.
- Define the OLE DB data source used for connecting to a table by OLE DB (when the data file is described through programming).
In this case, this property is equivalent to the CtDescribedDatabase property.
Reminder: HConnect is used to redefine one or more parameters of the OLE DB connection to a table. By default, the characteristics of the OLE DB connection are defined: - in the data model editor during the description of the data file,
- when the data file was described through programming.
// Find out the OLE DB data source ResOLEDBDatabase = Client.CtDatabase
Syntax
Find out the OLE DB data source Hide the details
<OLE DB data source> = <Data file>.CtDatabase
<OLE DB data source>: Character string Full path of OLE DB data source. <Data file>: Character string Name of the data file used. This name was defined in the data model editor or with the File Description type.
Defining the OLE DB data source Hide the details
<Data file>.CtDatabase = <OLE DB data source>
<Data file>: Character string Name of the data file used. This name was defined by the File Description type. <OLE DB data source>: Character string Full path of OLE DB data source. Remarks The CtDescribedDatabase property is used to get and change the data source specified for the OLE DB connection when describing the data file.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|