Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reindex issue
Message
From
28/06/2006 10:34:35
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:
01132400
Views:
13
>Interesting idea. Where is the clean (empty) structure before it is called. Is it in another folder or is it in the production folder but named something different.

Renaming tables would cause you trouble with the links between database and tables, and with referential integrity.

I suggest another folder, same names for database and tables.

> Once appended FROM, how does it replace the production files.

The outline of the process is more or less like this:
  • Copy the clean, empty database to a temp folder. After all, you may have to use it more than once.
  • APPEND FROM - from the current data, into this temp folder.
  • Copy the temp folder to the production data, replacing the previous version.

    >Are the production tables renamed before the append FROM.

    No, I suggest you don't change the names of ANY table. Just work with different folders.

    Note that several things can go wrong; you may need to include lots of error handling. Like, a table (especially in the production data) can't be opened because it was erased, because the index (CDX) was erased, because it is no longer linked to the database, etc.
    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
    Reply
    Map
    View

    Click here to load this message in the networking platform