Bde.DBTables.TSession.AddAlias
Delphi
procedure AddAlias(const Name, Driver: string; List: TStrings);
C++
void __fastcall AddAlias(const System::UnicodeString Name, const System::UnicodeString Driver, System::Classes::TStrings* List);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TSession |
Description
Adds a specified Borland Database Engine (BDE) alias to the session for an SQL database server.
Call AddAlias at run time to create a session-specific BDE alias for an SQL database server. Name is the unique name to assign to the alias. Driver is the name of the SQL Links database driver to use for the alias. List is a string list containing parameters for the alias.
A ConfigMode property of the session determines whether an alias 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 an alias permanently, call the SaveConfigFile method before ending the session.
Note: Although AddAlias can be used to create a Paradox or dBASE alias, AddStandardAlias provides a simpler method for Paradox and dBASE alias creation.