_QBSQL000.DBF Files??

Posted on 1999-01-06
Last Modified: 2012-06-21
Hi there,
         I have a question regarding the temporary files types created when running a Delphi 3 App that incorporates
Datamodules. Why are these files created (sometimes on the desktop) and how can I prevent them from being created in the programs directory. Any ideas would be appreciated.

Regards WESTY :)

Question by:westy100697
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2

Expert Comment

by:Ronald Buster
ID: 1354825
These are temporary files. I guess to you make a query with a TQuery component therefore, the bde makes a temporary database in the current directory. You cannot
prevent this the only way to prevent this is : do not use a TQuery component use TTable components and link them (if you have a query with more than one database) with keyfields.

If you need further help with this please feel free to ask me okay.



Author Comment

ID: 1354826
        Alas I guessed they were derived from a TQuery already since (_QSQL) but I may be guessing here I have Dll's in this project as well and to use them I have to create them in the Dll source. Is this the source of the _QSQL files ie on the creation of the Datamodule object. I ask this as this is the source of all my queries and tables. Also in the forms I have been accessing there are only links to TTable components and no links to TQuery. This is why I have found it so bizarre. I give you an example. I have checked before executing the program for any _QSQL files and there are none. I can then run the program and without actually accessing a Query component these temporary files are created. The difference has been that I am unable to delete these at the runtime of the program. As soon as I exit the program they disappear. It is very strange as when I actually use a Query component a permanent file is recorded in the program directory and I then must manually delete. Very very strange I reckon.

Expert Comment

ID: 1354827
Try TSession.PrivateDir.
See Delphi Help on this !

Greetings, Oli
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 1354828
         I am going to reject your answer as I tried what Oli2 said and he eas spot on. Works like a charm Oli2 so if you want the points lock the question and thanks for your help.

Regards WESTY :)

Expert Comment

by:Ronald Buster
ID: 1354829
Ok the TSession.PrivateDir is a solution but the temporary files still remain. This is not really solving your problem or not ?




Accepted Solution

Oli2 earned 20 total points
ID: 1354830
Thanx, Westy !
The answer was: TSession.PrivateDir

Greetings, Oli

Author Comment

ID: 1354831
       Thanks for the answer works well. Cono this sis solve the problem as the files were preventing dbf's from being backed up. So by pointing the TSession.Privatedir I was able to eliminate the problem. Hope this clears it up. Thanks for your help too though.


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

734 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