psDriverID - cCLIHandler
The driver identification
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psDriverID
| Access Type | Syntax |
|---|---|
| Read Access: | Get psDriverID to StringVariable |
| Write Access: | Set psDriverID to StringVariable/Value |
Description
The identification of the CLI driver.
Setting the Driver
When creating an object of the cCLIHandler class you must set the psDriverID property.
This property can have one of these values:
| Constant | Meaning |
|---|---|
| DATAFLEX | Embedded database |
| DB2_DRV | DB2 Connectivity Kit |
| DFBTRDRV | Pervasive.SQL Connectivity Kit |
| MSSQLDRV | Microsoft SQL Connectivity Kit |
| ODBC_DRV | ODBC Connectivity Kit |
In order for the cCLIHandler class to work with the ODBC Connectivity Kit the property should be set to "ODBC_DRV".
Get Create U_cCLIHandler To hoCliHandler
Set psDriverID Of hoCLIHandler To "ODBC_DRV"
In order for the class to work with the Connectivity Kit for SQL Server, the property should be set to "MSSQLDRV".
Get Create U_cCLIHandler To hoCliHandler
Set psDriverID Of hoCLIHandler To "MSSQLDRV"
In order for the class to work with the Connectivity Kit for DB2, the property should be set to "DB2_DRV".
Get Create U_cCLIHandler To hoCliHandler
Set psDriverID Of hoCLIHandler To "DB2_DRV"
If you use the cMSSQLHandler, cDB2Handler or cODBCHandler classes (subclasses of cCLIHandler) instead, this property is already set for you.