Solved

Using a local Database

Posted on 1998-04-24
1
135 Views
Last Modified: 2010-04-06
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
Comment
Question by:Dazza051197
1 Comment
 
LVL 2

Accepted Solution

by:
kjteng earned 50 total points
ID: 1336912
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now