Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
254 character limitiation on strings sent to sql..
Message
From
19/06/2001 06:34:28
 
 
To
18/06/2001 16:42:52
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00520766
Message ID:
00520908
Views:
19
Hi!

In addition to what is already said, you can reduce the length of the query sting by several ways. For example, use 1-letter aliases for tables in query. Use '?' parameters in the query to pass values for query conditions etc.

Examples:

lcFilt = 'Jo%'
SQLEXEC(nHandle, "SELECT a.Key, a.Name, a.Sum, ... FROM Customers a ... WHERE a.FirstName LIKE ?lcFilt")

lcLT = "Very very long text for very very long updating command"
SQLEXEC(nHandle,"UPDATE Customers a SET a.Notes = ?lcLT")

HTH.

>to all
>i am sending query stings to sql server to bring back cursors for my reports. when the string is 254 characters or less it runs fine but otherwise it bombs out. has anyone else had this problem, and/or is their a workaround for it
>tia
>frank
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform