Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying DB and Tables
Message
De
31/10/2002 05:06:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/10/2002 04:42:09
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:
00717254
Vues:
12
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform