Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move database file to another location ?
Message
From
19/05/2011 13:19:44
 
 
To
19/05/2011 11:03:22
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01511144
Message ID:
01511157
Views:
62
>Hi,
>
>I have a database located in the path c:\wts\data\wtsdata.dbc,
>but the all DBF files of the wtsdata.dbc located in f:\wts\data.
>
>Now I want to move all DBF files to another location x:\wts\data
>
>I copy all the DBF file to x:\wts\data, but how to change the path in the wtsdata.dbc ?
>

First, it's not a good idea to keep a database and its tables in different folders. Many of VFP's tools rely on relative addresses and work best when the DBC and the DBFs are in the same folder.

I think the RENAME TABLE command will let you move tables and update the database at the same time.

You'll have to deal individually (or by writing some code) with any forms that include the tables in their Data Environments and so forth.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform