Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot copy database .dbc is an invalid database
Message
From
25/11/2002 10:54:34
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00725944
Message ID:
00726455
Views:
18
How did you replace the old pmis.dbc with the new one? Did you delete the old DBC then create a new one? If so, this would have lost all of your connections to the tables.

Each table that is created in a database container has a physical connection to the database container it was created in. The first parts of a DBF define what the fields are and their sizes, but it also contains the link to the DBC. Without the DBC a table is sort of lost. Attempting to open a table with a lost link will ask you to locate the database that it is suppose to belong to. If the DBC has been deleted, or you don't have a DBC which contains the appropriate definition, the link has been lost and you are better off to tell it to delete the link. So in your case:

1. deleted the pmis.dbc
2. lost link to xyz.dbf
3. create clean pmis.dbc
4. attempt to add xyz.dbf
5. xyz.dbf says where is my pmis.dbc when it is right there in front of you.
6. locate to pmis.dbc... xyz.dbf table definition does not exist. Cannot connect.


To correct this...

1. Use xyz.dbf
2. Will ask to locate (parent DBC), delete (link to DBC), cancel (as if!)
3. Press the delete, to delete the link
4. Open pmis.dbc
5. modi data
6. add xyz.dbf
7. correct field names
8. correct indexes
9. don't delete a DBC manually again ;-)
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform