Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitation of 24 elements in SELECT IN...?
Message
From
16/07/2008 14:17:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/07/2008 13:06:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01331712
Message ID:
01331751
Views:
9
>A coworker is attempting to query (using vb.net) a free foxpro table and join it to a query from sql server 2000 using the 'IN' clause. The query error message returned states that there are too many elements in the IN clause????
>
>Is there an easy way to do this?
>
>Join a foxpro free table with a result from sqlserver? Right now he queries the foxpro table into a temporary table and then queries it looking for in... the sqlserver select.
>
>Is this a limitation of foxpro, the ole provider, or what? If I do a similar query in sqlserver (from two tables) where the in elements exceed 24, there is no problem...

Tell him to check his VFPOLEDB version. However it is not wise to use IN against foxpro unless you are sure the list is short.
A better approach is to create a temp table on SQL server and use it in a join or a linked server.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform