Solved

_QBSQL000.DBF Files??

Posted on 1999-01-06
7
271 Views
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 :)

0
Comment
Question by:westy100697
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

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.

regards,

cono
0
 

Author Comment

by:westy100697
ID: 1354826
cono,
        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.
0
 
LVL 1

Expert Comment

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

Greetings, Oli
0
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.

 

Author Comment

by:westy100697
ID: 1354828
Cono,
         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 :)
0
 
LVL 3

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 ?

greets

Cono

0
 
LVL 1

Accepted Solution

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

Greetings, Oli
0
 

Author Comment

by:westy100697
ID: 1354831
Oli2,
       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.

WESTY :)
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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 208
LAN or WAN ? 11 81
How to define IfThen functions in one common unit? 4 44
control image tags in a string ? 12 110
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

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

19 Experts available now in Live!

Get 1:1 Help Now