Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stonefield Query GetValuesForField Example
Message
From
17/11/2006 12:44:17
 
General information
Forum:
Visual FoxPro
Category:
Stonefield
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01169377
Message ID:
01170758
Views:
6
Hi Chris.

>this is off topic but was hoping you could describe in general terms how the tableupdate routine in SDT works. By that i mean in the event where new fields are being added to an existing table AND existing fields are being removed from the same table, is the processing order to ADD the new, then REMOVE the "old" fields? I ask because i encountered a "too many columns" error during an update where a couple of new fields were being added while a large number of fields were being removed. The NET result would have altered a table so that the field count was below the max allowed. Using SDT5.1.

SDT uses a variety of mechanisms to update a table, depending on what changes were made, but the most common one creates an ALTER TABLE statement that's then macro expanded. DROP COLUMN commands are added to the statement after ADD COLUMN commands, although that may depend on the exact version of SDT you have (that's the way it is in the HowToSyncTables methods of 5.1k and later).

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform