TurboDB VCL Component Library

TTdbDataSet.DatabaseName

Previous  Top  Next

Specifies the name of the database associated with this dataset.

Delphi syntax:

property DatabaseName: String;

C++ syntax:

__property AnsiString DatabaseName = {read=FDatabaseName, write=SetDatabaseName};

Description

Use DatabaseName to specify the name of the database to associate with this dataset component. DatabaseName should match the name of a database component used in the application. You may also use a folder name like k:\turbodb\databases\db1 as the database name. In this case, all TurboDB tables in the folder are reachable via this DatabaseName. A third option is to set the file name of a single-file database as the database name.

Note: Attempting to set DatabaseName when a database already associated with this component is open raises an exception.