Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating data structure
Message
From
09/11/2004 08:11:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/11/2004 05:43:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00959460
Message ID:
00959505
Views:
7
>I was thinking about a procedure which allows me to update automatically tables and database informations.
>Anyone else has already thought something like that (of course he has ..)?
>Thank you
>Alessio

Make all your structural changes in an empty database: all tables have zero records.

Have a small program that makes an APPEND FROM for each table (combining the empty, new, structure, with the data in the old structure).

Watch out for RI: if the third part of the RI information is "R" (restrict), parent tables have to be copied before child tables - or else, if you copy the child first, you get a "trigger failed" message. Get the information about the relations with AdbObjects("relation").
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