Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT and getting 1 record only
Message
De
19/08/2000 08:21:38
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
19/08/2000 06:20:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00407001
Message ID:
00407009
Vues:
29
Vijay,

If you're doing SQL Pass-through, you retrieve only the records you specifically ask for. What can you say about the first record that makes it unique?

If you're using SELECT TOP(1) ... you would have to order by some criteria, and if there is a "tie" for first you may actually get more than one record.


>Hi All,
>
>How can I get only one row using SPT? I could think of MaxRecords property but that if use it will be something like
>
=CURSORSETPROP("MaxRecords", 1, "MyCursor")
>In this case, I guess the remote server would have already fetched the entire result into cursor "mycursor" resultset even though I am interested in the 1st record of the result set and causing network delay. Am I missing something here?
>
>Thanks in advance
>
>Regards
>Vijay
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform