Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query VFP cursor and SQL server table
Message
From
27/02/2004 09:06:49
 
 
To
27/02/2004 08:54:35
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00881433
Message ID:
00881443
Views:
17
>Hi,
>I have a VFP cursor result contains customer records. I want to query all order transactions placed by these customers. How the sql statement look like to send to sql server?
>
>Thank you

There's a couple of ways you can do it... if you don't have a large amount of customers you can do something like:
SELECT *
FROM Orders
WHERE CustID IN (id1, id2, id3, id4, id5,...)
Just build the 'in' part in a scan loop first, then create your select.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform