Bde.DBTables.TSession.AddStandardAlias

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddStandardAlias(const Name, Path, DefaultDriver: string);

C++

void __fastcall AddStandardAlias(const System::UnicodeString Name, const System::UnicodeString Path, const System::UnicodeString DefaultDriver);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TSession

Description

Adds a standard Borland Database Engine (BDE) alias to the session for Paradox, dBASE, or ASCII tables.

Call AddStandardAlias at run time to create a session-specific BDE alias for Paradox, dBASE or ASCII tables. Name is the unique name to assign to the alias. Path specifies the directory where the database is located. DefaultDriver is the name of the standard BDE driver to use for the alias. If set, DefaultDriver must be one of "Paradox," "DBASE," or "ASCIIDRV". If left blank, DefaultDriver defaults to "Paradox". DefaultDriver is used when attempting to open a table that both does not have an extension and is defined as a table of type ttDefault.

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: To create an alias for an SQL database, call AddAlias instead of AddStandardAlias.

See Also