RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.DatabaseName Property

Specifies the name of the database to associate with this database component.

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

Use DatabaseName to specify the name of the database to use with a database component. If DatabaseName is the same as an existing Borland Database Engine (BDE) alias, then the AliasName and DriverName properties need not be set. If DatabaseName does not match an existing BDE alias, then either the application must also supply a valid alias in the AliasName property in addition to the DatabaseName, or it must supply the DriverName and Params properties. 

DatabaseName can be a fully qualified path name when connecting to a Paradox or dBASE database.

Note: Attempting to set DatabaseName when the Connected property is true raises an exception.
Tip: At design time double-click a TDatabase component to invoke the Database editor and set the DatabaseName.
 

 

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