Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you modify a table in a client's machine?
Message
From
27/01/2002 08:58:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/01/2002 07:53:42
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00611234
Message ID:
00611247
Views:
22
>I have an application I made for a friend's school. I need to add a field to a table, but I'm wondering what is the correct way to do this without disturbing the data in his database.
>TIA

Apart from ALTER TABLE, you can also have an empty copy of the database (with the new structures) and issue APPEND FROM for each table. The tricky part is to copy parent table before child table (avoid "trigger failed"). Also, if you have a lot of data, it helps to compare table structures and skip tables that haven't changed (use COPY FILE instead).

Hilmar.
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