If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Delphi & Foxpro database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-04, 14:17
rvlashley rvlashley is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Question Delphi & Foxpro database

Need help trying to figure out why I cannot use a query (TQuery) in which I'm querying two databases. I get the error: "Operation could not be completed. File or directory does not exist. C:\App\PDOXUSRS.LCK C:\App\PARADOX.LCK'

No DatabaseName is specified in the Tquery property because it's using two databases. Tables in query are a foxpro table and a sybase table.

This query used to work and one day it just stopped. Any solutions?

Last edited by rvlashley; 07-09-04 at 14:19. Reason: Include database table types
Reply With Quote
  #2 (permalink)  
Old 07-13-04, 11:16
AceOmega AceOmega is offline
Registered User
 
Join Date: Apr 2004
Location: Arizona
Posts: 49
Paradox

It sounds like you are using Paradox through the BDE. First thing to do is to do a search on your C: drive for all files that end with *.LCK and delete them. These are record lock files which should be automatically created and delted when you open a live connection to a table. It shounds like the app crashed and did not clean up its locks.

Second step, go into the BDE Admin and switch tabs to the Configuration tab. Then expand the Configuration tree, then the Drivers tree, then the Native TRee, and finally the Paradox driver. Look at it's "Net Dir" and make sure it is pointing to a directory that exists and has full rights to. It sounds like it may be pointed to c:\apps\, which does not exist on your c: drive. If this app is run accross a network then you will need to change it to a common drive that every one has access to like X:\APPS\PARADOX.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On