Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long SQLPREPARE Query Statement Issue
Message
 
To
27/10/1998 16:41:12
Robert Byrd
National Association of Homebuilders
Washington, District of Columbia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00151274
Message ID:
00151284
Views:
26
VFP has a literal string length limit of 255 bytes. Try breaking the statement up into smaller pieces and concatenating them like this: =SQLPREPARE(x,'SELECT * '+'FROM mytable WHERE '+'x=5...').

>If I execute a SQLPREPARE() statement that is very long, ie, over 255 characters, I cannot get it to execute. I have not been able to confirm that there is a 255 character limit on this statement (except that it is part of a VFP statement).
>
>Is there a trick, workaround or method to execute long SQL Server statements from SQLPREPARE()?
>
>Bob
Previous
Reply
Map
View

Click here to load this message in the networking platform