Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Joining a Fox Cursor with a SQL-Server SQL Passthru
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00458614
Message ID:
00458638
Vues:
14
If I understand correctly, what you will have to do is either move the cEmployees up to SQL Server or bring the Individual down to the client. You could use SPT to set up a cursor with all of teh IndNo's in there and then do something like:

SELECT individual.name
FROM cEmployees ;
WHERE cEmployees.IndNo IN ;
(SELECT DISTINCT IndNo ;
FROM vIndividual) && Remote View

Is that along the lines of what you are looking for?

>If you have a cursor in Foxpro, can you do SQL Passthru that is joined to it? And if so, how? I cannot find it in help or any books.
>
>Say the cursor name is cEMPLOYEES.
>If everything was in Fox, my select statement might be:
>SELECT INDIVIDUAL.NAME, cEMPLOYEES.EMPNO ;
> FROM INDIVIDUAL INNER JOIN cEMPLOYEES ON INDIVIDUAL.INDNO == cEMPLOYEES.INDNO
>
>However, if the INDIVIDUAL table was in SQL Server and I wanted to only pull the individuals who's IndNo exists in the cEmployee cursor using SQL Passthru, how would I do that?
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform