ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
CtDescribedDatabase (Property)
In french: CxBaseDeDonnéesDécrite
OLE DBAvailable only with this kind of connection
The CtDescribedDatabase 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 data source was described in the data model editor or when the data file was described through programming.
    Caution: the CtDescribedDatabase property ignores any changes made with HConnect.
    This property can be used for a data file defined in the data model editor or programmatically.
  • Define the OLE DB data source used for connecting to a table by OLE DB (when the data file is described through programming). This property is equivalent to the CtDatabase 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 when describing the data file,
  • when the data file is described through programming.
Example
// Find out the OLE DB data source
ResOLEDBDatabase = Customer.CtDescribedDatabase
Syntax

Finding out the OLE DB data source Hide the details

<OLE DB data source> = <Data file>.CtDescribedDatabase
<OLE DB data source>: Character string
Full path of the OLE DB data source, specified during the description of the file.
<Data file>: Character string
Name of the data file used. This name is defined in the data model editor or with the File Description type.

Defining the OLE DB data source Hide the details

<Data file>.CtDescribedDatabase = <OLE DB data source>
<Data file>: Character string
Name of the data file used. This name is defined with the File Description type.
<OLE DB data source>: Character string
Full path of OLE DB data source.
Remarks
The CtDatabase property gets and sets the data source specified for the OLE DB connection.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/29/2024

Send a report | Local help