Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move database file to another location ?
Message
De
19/05/2011 13:19:44
 
 
À
19/05/2011 11:03:22
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01511144
Message ID:
01511157
Vues:
63
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform