Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLExec to handle two SQLs
Message
From
19/03/2003 23:50:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
SQLExec to handle two SQLs
Miscellaneous
Thread ID:
00767949
Message ID:
00767949
Views:
60
I need to convert two VFP SQLs into SQLExec(). What I have presently in VFP is one SQL which collects all primary keys from a table. Then, from that cursor, I extract all the necessary fields from the table by the use of a inner join. So, I have something like:
SELECT MIN(News.Numero) AS Numero FROM News WHERE Priority INTO CURSOR Temp

SELECT News.Numero,News.CustomerName FROM Temp;
 INNER JOIN News ON Temp.Numero=News.Numero INTO CURSOR Temp
Basically, how can I achieve the same from a SQL Server table by the use of 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
Next
Reply
Map
View

Click here to load this message in the networking platform