RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.AliasName Property

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

Pascal
property AliasName: string;
C++
__property AnsiString AliasName;

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.
 

 

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