Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying DB and Tables
Message
De
31/10/2002 05:15:37
 
 
À
31/10/2002 05:06:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00717251
Message ID:
00717255
Vues:
16
>>Hi
>>
>>I need to create an empty copy of my database and tables from one location to another.
>>
>>The problem I've got is that I need to create an empty database, and then place each table from the source into the destination, but with no records (COPY STRUCTURE), but the only problem is, how can I create an empty database programmatically with no user interaction? And then place the tables into that new database.
>>
>>I don't think you can, any suggestions?
>>
>>Thanks
>>Kev
>
>All afresh ? Thanks to VFP tools :)
>Run home()+'tools\gendbc\gendbc' and point your dbc. It'd generate a .prg and if there are stored procs a .krt file.
>Copy these files and set your default directory to new dbc folder and run the prg.
>(Alternattively you could edit the prg to create dbc and tables in folder you specify)
>Cetin

Thanks Cetin, I can't believe I forgot about good ol' gendbc!

Cheers
Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform