Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tableupdate() - Line is too long
Message
 
 
To
30/01/2007 09:48:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01190435
Message ID:
01190585
Views:
18
>>>So... It seems 40 fields is limitation for single tableupdate??

No. When you do a TABLEUPDATE(), VFP internally executes an INSERT SQL command, using the fields of the view. The limit for any VFP command (including SQL Statements) is 8192 characters.

Take a look at this link:
http://fox.wikis.com/wc.dll?Wiki~VFPVersion10WishList~VFP

Search for the expression:
Extend 8192 statement limit

Despite Microsoft's claims of taking the limits off SQL Statements in VFP9, this limitation still exists. One thing you can try is to shorten your field names. Another thing is to create more than one view, each containing different fields and update the table peicemeal. Neither of these alternatives is very appealing.

When I sense that a view might be getting too large, I break it up into two and create a one to one relationship between them. The framework I use (Visual FoxExpress) makes this easy to do.
Del
Previous
Reply
Map
View

Click here to load this message in the networking platform