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

Click here to load this message in the networking platform