Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Length issue with VFP6 and ODBC
Message
From
11/04/2001 10:47:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00494412
Message ID:
00494424
Views:
21
>I've run into an issue of Fox not allowing me to write a sqlexec() command that is longer than 255 characters. With the excepting of creating multiple sqlexec() commands to complete the odbc call, is there anyway to do it in just one statement, regardless of length???
>
>Thanks,

Hi Shane,

What I've done to resolve this problem is to split the statement into several shorter strings. Then add all these shorter strings into 1 string that I will use in the actual SQLEXEC(). It worked, though I can't explain why.

csql1 = "SELECT ...."

csql2 = "FROM ...."

csql3 = "WHERE ..."

csqlstatement = csql1 + csql2 + csql3

nhandle = SQLEXEC(nhndl, csqlstatement, 'cursor')

HTH
Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform