Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max Length of SQL Pass-through string
Message
From
05/02/2002 14:12:30
 
 
To
04/02/2002 12:39:50
Arden Weiss
Liberty Computers Ltd.
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00614909
Message ID:
00615678
Views:
16
Arden,

For readability, and to reuse or make generic SQLexec calls, I use to build the SQL command into a character string and then call the SQLexec function. This way I create very very long strings and have no problems:
 gObjtSQLcommand = "Select Count(*) as Records From " + IIf (Empty (cTableOwner), "", cTableOwner + ".") + cTableName

 If SqlExec (gSQLHandle, gObjtSQLcommand, "SQLcurSelect") <> 1
    . . .
Hope this helps,

Fernando
Previous
Reply
Map
View

Click here to load this message in the networking platform