Solved

Using a local Database

Posted on 1998-04-24
1
134 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

11 Experts available now in Live!

Get 1:1 Help Now