Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automate adding field to an existing table
Message
 
 
To
11/08/2005 13:55:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040325
Message ID:
01040327
Views:
13
>I have an application where we keep a separate database for each client and we now have over 1,000 separate databases. Each database is identical with the same set of tables, views, etc. I need to add a new field to one of the tables in the database. Is there a way to automate just adding a new field to a table without removing the current table, adding the new table and appending the old data back in?

Did you try
ALTER TABLE mytable ADD COLUMN NewColumn C(20)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform