RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.AddDriver Method

Adds a specified Borland Database Engine (BDE) driver to the session for an SQL database server.

Pascal
procedure AddDriver(const Name: string; List: TStrings);
C++
__fastcall AddDriver(const AnsiString Name, TStrings List);

Call AddDriver at runtime to create a BDE driver for an SQL database server. AddDriver can also be used to create ODBC driver entries. Name is the unique name to assign to the driver. List is a string list containing parameters for the alias. 

A session's ConfigMode property determines whether a driver is local to the session, or is available to all applications in the BDE persistent store as long as any BDE clients are active. To save a driver permanently, call the SaveConfigFile method before ending the session. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!