Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Dabatases and Tables
Message
De
24/11/1999 09:56:46
 
 
À
24/11/1999 09:49:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00295002
Message ID:
00295006
Vues:
25
>For History/backup reasons, I'd like to copy my current MYDBC_NOVEMBER to MYDBC_DECEMBER with all the tables, views, links, etc.
>
>I can't just copy and rename the database container because the links will be broken.
>
>What's an easy way to do this? Any comments or suggestions will be welcome. Thank you in advance.

There are a couple of ways I can think of...

1. Copy the database file to the new directory with the new name.
2. Copy all the tables to the new directory.
3. Use the backlink class (I think it is in the UT file section) to change all the backlinks of the tables to the new database.


Or

1. Create a new database file in a new directory with the new name.
2. Use COPY TO with the Database keyword to copy the tables to the new database.
3. Use the old DBC as a file.
4. Export all the relation records to a table.
5. Append the relations to the new DBC.

*************
Unfortunatly there is no... COPY DATABASE TO... {G}

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

Click here to load this message in the networking platform