[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

Using a local Database

Can I create and use a database in the same directory as my application and use it (only from my application) with the database components, ie I dont want to go through the Interbase server etc.

Darren
0
Dazza051197
Asked:
Dazza051197
1 Solution
 
kjtengCommented:
You can use local database such as paradox or dbase file.
To use data files stored in program directory, set the DatabaseName property of the relevant table component to
extractFilePath( paramStr(0)) at RUN TIME as follows:

table1.active:= false;
table1.DatabaseName:= extractFilePath( paramStr(0));
table1.tablename:= 'tableXXX.db';
table1.active:= true;

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now