Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the max number of items in IN clause?
Message
From
27/04/2010 10:23:10
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01462166
Message ID:
01462189
Views:
67
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>Did anyone find a maximum number of items you can use with select .. Item IN (...) clause?
>
>The limit seems to be 159 items before it gives SQL: Statement too long (Error 1812).
>
>Thanks in advance.

In VFP 8 and earlier, 26. In VFP 9, it's based on SYS(3055).

But as Mike said, put the items in a cursor and don't worry about it.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform