Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reindex issue
Message
From
28/06/2006 10:40:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01132248
Message ID:
01132408
Views:
18
>Some more thoughts. The reorganize option could work like this? Programmatically create a database .dbc with an obsure name in the production folder. Create all the required tables and indexes, repeating the obsure naming. Append FROM the corrupted production tables (every table, excluding the .dbc) into the obscure tables. Delete the production tables, indexes and .dbc. Rename the obscure tables to the production names (or) programmatically recreate the production .dbc and tables then append FROM the obscure tables. Upon completion delete the obscure tables?
>
>Dallas

Renaming tables that are contained in a database might be quite problematic, so I would suggest a separate folder.

The other point is, to create required tables and indices programmatically. The real challenge, I think, would be to create RI. I am not sure whether there is a way to do this programmatically yet.

Anyway, it should be easier to have a clean copy of the database, created manually. If you don't want them easily accesible, you might hide the files somewhere - in a ZIP file, or in memo fields of a table, for instance - and extract them when required.

Similar for updating data structures (new tables, new fields or changes in field lengths). You might create the ALTER TABLE commands, but a generic solution with APPEND FROM (into empty tables, with a new structure) is much easier to handle.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform