Bde.DBTables.TDatabase.DatabaseName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TDatabase

Delphi

property DatabaseName: string read FDatabaseName write SetDatabaseName;

C++

__property System::UnicodeString DatabaseName = {read=FDatabaseName, write=SetDatabaseName};

Description

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

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.

See Also