Borland
Database Engine
BDE
setup options:
- Database only on the file server:
- any version of Delphi
- BDE on client
- disadvantages:
- updating BDE, settings or aliases, need
to update each client
- various clients may be using different
versions of BDE or different settings
- have to install BDE on each client and
configure eg. paradox net file directory;
aliases;
- BDE and database on the file server:
- any version of Delphi
- advantages:
- only need to update the one BDE
- all clients use same version, settings
& aliases of BDE
- no need to install BDE when add new
client
- disadvantages:
- slightly slower load time as have to load
DLL's across network
- need to manually install BDE to network
server:
- install BDE on a client
- copy BDE files to shared
directory on server
- set BDE configuration options to
"use with Win 3.1 and
95/NT" to ensure
configuration parameters will be
stored on server config. file
rather than in one client's
registry
- have client application reset BDE
registry entries:
- create 2 ini files:
- app.ini (stored in
same directory as
app.exe):
- [BDE]
- ConfigPath=f:\foo\bde\idapi.cfg
- BDEPath=f:\foo\bde
- Overwrite=true
(allows overwriting of
registry entries if
already exist)
- IniPath=f:\foo\bde.ini
- redirects ini to BDE
folder & ignores
above here
- thus no need to
change each client's ini
file just the BDE.ini
file
- bde.ini (stored with
BDE):
- application code:
- initialization:
- AppIni :=
TApplicationIniFile.Create(Application);
- try
AppIni.CreateBDEKeys;
finally AppIni.free; end;
- CreateBDEKeys
function (see DInformant
1999 Feb: 66-69
di9902bt.zip);