Bde.DBTables.TDatabase.AliasName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AliasName: string read GetAliasName write SetAliasName;

C++

__property System::UnicodeString AliasName = {read=GetAliasName, write=SetAliasName};

Properties

Type Visibility Source Unit Parent
property published
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TDatabase

Description

Specifies the Borland Database Engine (BDE) alias used by this database connection.

Use AliasName to specify the name of an existing BDE alias for the database component. A BDE alias contains database configuration information for connection to a specific kind of database, such as InterBase, dBASE, or Paradox. The configuration information associated with a BDE alias differs by database type.

If an application sets AliasName, any value previously assigned to the DriverName property is cleared because the alias automatically specifies a driver name as one of its parameters. Other alias connection information is stored in the Params property when AliasName is set.

Note: Attempting to set AliasName when the Connected property is true raises an exception.

Note: An application can specify the DatabaseName, DriverName, and Params properties rather than setting AliasName if the desired BDE alias configuration does not already exist. An application can also provide an application-specific "alias" name by setting DatabaseName when AliasName is already set.

Tip: At design time double-click a TDatabase component to invoke the Database editor and set the AliasName.

See Also