|
|
|
|
CtOLEDBProvider (Property) In french: CxProviderOLEDB
Available only with this kind of connection
The CtOLEDBProvider property is used to get and set the name of the OLE DB provider (also called OLE DB server). You can: - Find out the name of the provider used for the connection to a table via OLE DB. The name of the provider can correspond to:
- the OLE DB provider defined in the data model editor,
- the OLE DB provider specified in HConnect (if this function was used).
This property can be used for a file defined in the data model editor or through programming.
- Define the name of the OLE DB provider used for the connection to a table via OLE DB (only when the data file is described through programming).
In this case, this property is equivalent to the CtDescribedOLEDBProvider 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.
// Define the OLE DB provider used Customer.CtOLEDBProvider = hOledbOracle ... // Validate the data file description HDescribeFile(Customer)
Syntax
Finding out the OLE DB provider used Hide the details
<Provider name> = <Data file>.CtOLEDBProvider
<Provider name>: Character string Name of the OLE DB provider or one of the following constants: | | hAccessHF7 | Pseudo-connection to HFSQL Classic database | hAccessHFClientServer | Native Access/Native Connector to an HFSQL Client/Server database | hNativeAccessAS400 | Native AS/400 Connector (optional module of WINDEV/WEBDEV) | hNativeAccessDB2 | Native DB2 Connector (optional module of WINDEV/WEBDEV) | hNativeAccessInformix | Native Informix Connector (optional module of WINDEV/WEBDEV) | hNativeAccessMariaDB | Native MariaDB Connector (optional module of WINDEV/WEBDEV) | hNativeAccessMySQL | Native MySQL Connector (optional module of WINDEV/WEBDEV) | hNativeAccessOracle | Native Oracle Connector (optional module of WINDEV/WEBDEV) | hNativeAccessOracleLite | Native Oracle Connector (optional module of WINDEV Mobile) | hNativeAccessPostgreSQL | Native PostgreSQL Connector (optional module of WINDEV/WEBDEV) | hNativeAccessProgress | Native Progress Connector (optional module of WINDEV/WEBDEV) | hNativeAccessSQLAzure | Native SQL Azure Connector (optional module of WINDEV/WEBDEV, provided with the Native SQL Server Connector) | hNativeAccessSQLite | Native SQLite Connector (provided with WINDEV/WEBDEV) | hNativeAccessSQLServer | Native SQL Server Connector (optional module of WINDEV/WEBDEV) | hNativeAccessSQLServerMobile | Native SQL Server Connector (optional module of WINDEV Mobile) | hNativeAccessSybase | Native Sybase Connector (optional module of WINDEV/WEBDEV) | hNativeAccessXBase | Native xBase Connector (provided with WINDEV/WEBDEV) | hNativeAccessXML | Native XML Connector (provided with WINDEV/WEBDEV) | hODBC | OLE DB provider for ODBC (used to access an ODBC data source declared in the ODBC data sources of Windows) | hOledbAccess97 | OLE DB provider for Access 97 | hOledbAccess2000 | OLE DB provider for Access 2000 | hOledbAccess2007 | OLE DB provider for Access 2007 | hOledbAccess2010 | OLE DB provider for Access 2010 | hOledbDBase5 | OLE DB provider for dBase 5 | hOledbExcel2007 | OLE DB provider for Excel 2007 | hOledbExcel2000 | OLE DB provider for Excel 2000 | hOledbExcel97 | OLE DB provider for Excel 97 | hOledbLotus4 | OLE DB provider for Lotus 4 | hOledbOracle | OLE DB provider for Oracle | hOledbSQLServer | OLE DB provider for SQL Server |
Caution: To use an OLE DB connection, you must:- install MDAC version 2.6 or later (setup performed by WINDEV/WEBDEV and when creating the setup version),
- install the OLE DB provider corresponding to the database used.
<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 provider used Hide the details
<Data file>.CtOLEDBProvider = <Provider name>
<Data file>: Character string Name of the data file used. This name is defined with the File Description type. <Provider name>: Character string Name of the OLE DB provider or one of the following constants: | | hAccessHF7 | Pseudo-connection to HFSQL Classic database | hAccessHFClientServer | Native Access/Native Connector to an HFSQL Client/Server database | hNativeAccessAS400 | Native AS/400 Connector (optional module of WINDEV/WEBDEV) | hNativeAccessDB2 | Native DB2 Connector (optional module of WINDEV/WEBDEV) | hNativeAccessInformix | Native Informix Connector (optional module of WINDEV/WEBDEV) | hNativeAccessMariaDB | Native MariaDB Connector (optional module of WINDEV/WEBDEV) | hNativeAccessMySQL | Native MySQL Connector (optional module of WINDEV/WEBDEV) | hNativeAccessOracle | Native Oracle Connector (optional module of WINDEV/WEBDEV) | hNativeAccessOracleLite | Native Oracle Connector (optional module of WINDEV Mobile) | hNativeAccessPostgreSQL | Native PostgreSQL Connector (optional module of WINDEV/WEBDEV) | hNativeAccessProgress | Native Progress Connector (optional module of WINDEV/WEBDEV) | hNativeAccessSQLAzure | Native SQL Azure Connector (optional module of WINDEV/WEBDEV, provided with the Native SQL Server Connector) | hNativeAccessSQLite | Native SQLite Connector (provided with WINDEV/WEBDEV) | hNativeAccessSQLServer | Native SQL Server Connector (optional module of WINDEV/WEBDEV) | hNativeAccessSQLServerMobile | Native SQL Server Connector (optional module of WINDEV Mobile) | hNativeAccessSybase | Native Sybase Connector (optional module of WINDEV/WEBDEV) | hNativeAccessXBase | Native xBase Connector (provided with WINDEV/WEBDEV) | hNativeAccessXML | Native XML Connector (provided with WINDEV/WEBDEV) | hODBC | OLE DB provider for ODBC (used to access an ODBC data source declared in the ODBC data sources of Windows) | hOledbAccess97 | OLE DB provider for Access 97 | hOledbAccess2000 | OLE DB provider for Access 2000 | hOledbAccess2007 | OLE DB provider for Access 2007 | hOledbAccess2010 | OLE DB provider for Access 2010 | hOledbDBase5 | OLE DB provider for dBase 5 | hOledbExcel2007 | OLE DB provider for Excel 2007 | hOledbExcel2000 | OLE DB provider for Excel 2000 | hOledbExcel97 | OLE DB provider for Excel 97 | hOledbLotus4 | OLE DB provider for Lotus 4 | hOledbOracle | OLE DB provider for Oracle | hOledbSQLServer | OLE DB provider for SQL Server |
Caution: To use an OLE DB connection, you must:- install MDAC version 2.6 or later (setup performed by WINDEV and when creating the client version),
- install the OLE DB provider corresponding to the database used.
Remarks The CtDescribedOLEDBProvider property gets and sets the type of access specified for the OLE DB connection when describing the data file.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|