Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec to handle two SQLs
Message
De
20/03/2003 11:24:02
 
 
À
20/03/2003 05:39:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00767949
Message ID:
00768132
Vues:
14
>Use two similar syntax:
>VFP
>
>SELECT TOP 1 Numero,CustomerName FROM News WHERE Priority ORDER BY 1 INTO CURSOR Temp
>
>SQL
>
>SQLEXEC(odbc,"SELECT TOP 1 Numero,CustomerName FROM News WHERE Priority ORDER BY 1","Temp")

I don't understand this answer as per my original message. The problem here is not to execute a SQLExec(). But, one SQL will create a cursor. Then, from that cursor we need to query another SQL on SQL Server with an inner join to get the rest of the fields. So, as the cursor created in VFP is not visible in the next SQLExec(), this is why I wanted to obtain an advise as to know how to achieve that in one SQLExec().
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform