Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query VFP cursor and SQL server table
Message
From
27/02/2004 10:44:42
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
27/02/2004 08:54:35
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00881433
Message ID:
00881487
Views:
14
>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
hi,
one way would be
sqlexec(han,"select cus_id into #temp from customer where 1 = 0")
now populate the #temp table created on the sqlserver with the cus_id which u have.

then use innerjoin to retrve a view.
sqlexec(han,"select customer.* from customer inner join "+;
             "#temp on customer.cus_id = #temp.cus_id","cursor")
Well a round a way approach but helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform