Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move table between database
Message
De
07/03/2012 08:01:02
 
 
À
07/03/2012 07:52:55
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 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01537488
Message ID:
01537489
Vues:
56
Hi Gary.

>Is there a way to move a table from one database to another without using REMOVE TABLE / ADD TABLE which would mess up long fields names and indexes?

- Use GENDBC to generate the code to recreate the table
- Modify the code to rename the table (because you can't have two tables in the same folder with the same name) and to apply to the other database
- Run it to create the table
- Use APPEND FROM to populate the new table from the old one
- Remove the table from the original database
- Rename the new table back to the old name

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform