Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying DB and Tables
Message
From
31/10/2002 05:06:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
31/10/2002 04:42:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00717251
Message ID:
00717254
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform