Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLExec to handle two SQLs
Message
From
20/03/2003 11:24:02
 
 
To
20/03/2003 05:39:27
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00767949
Message ID:
00768132
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform