|
<< Click to Display Table of Contents >> Configuring the BDE configuration file for ODBC |
![]() ![]()
|
The configuration of BDE (at least as it relates to SQL) is similar to the ODBC configuration. You must specify a series of DRIVERS (like the ODBC drivers) and ALIASES (much like the ODBC data sources).
Here is an example showing a Drivers section from the Registry:
ORACLE:
INIT:
VERSION:4.0
TYPE:SERVER
DLL:SQLD_ORA.DLL
DLL32:SQLORA32.DLL
VENDOR INIT:NULL
DRIVER FLAGS:NULL
TRACE MODE=0
DB OPEN:
SERVER NAME:ORA_SERVER
USER NAME:MYNAME
NET PROTOCOL:MYNET PROTOCOL
OPEN MODE:READ/WRITE
SCHEMA CACHE SIZE:8
LANGDRIVER:NULL
SQLQRYMODE:NULL
SQLPASSTHRU MODE: SHARED AUTOCOMMIT
SCHEMA CACHE TIME: -1
MAXROWS: -1
BATCH COUNT: 200
Note that it is this entry ORACLE that gets associated with the aforementioned alias reference to a driver.
Here is an example of a Database Alias section of a BDE configuration file (IDAPI.CFG):
ORACLE7:
DB INFO:
TYPE:ORACLE
PATH:NULL
DB OPEN:
SERVER NAME: ORA_SERVER
USER NAME:MYNAME
NET PROTOCOL:MY NET PROTOCOL
OPEN MODE:READ/WRITE
SCHEMA CACHE SIZE:32
LANGDRIVER:NULL
SQLQRYMODE:NULL
SQLPASSTHRU MODE:NOT SHARED
SCHEMA CACHE TIME:-1
MAXROWS: -1
BATCH COUNT: 200
There are two sub-properties:
| INFO. The INFO information is used to associate the alias with the correct driver name (see TYPE: ORACLE). |
| OPEN. The OPEN information is used to open the database alias. |