Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query VFP cursor and SQL server table
Message
De
27/02/2004 10:44:42
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
27/02/2004 08:54:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00881433
Message ID:
00881487
Vues:
15
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform