Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting Result Set
Message
De
13/01/2000 18:10:59
 
 
À
13/01/2000 17:51:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00317810
Message ID:
00317989
Vues:
8
>Mike,

Woops, nevermind. I went back and re-read the SQL docs to see that Top n & Order by, orders the result set before sending records, so I don't need an index.

But I'm still curious about FetchSize in conjuction with FetchMore

PF

>
>Thanks,
>
>Pf
>
>>I don't think that the FetchSize property will solve your problem. FetchSize determines the number of rows that VFP wait to receive before releasing to the program and retrieving the rest in the background.
>>
>>Is there anything in the table that even close to unique? You may be able to use the TOP command to limit the return results to 10. For example:
>>
>>
>>LOCAL lcCompany, hConn, lnResult
>>
>>hConn = SQLCONNECT(...)
>>lnResult = SQLEXEC(hConn, ;
>>  [SELECT TOP 10 company FROM customer WHERE company > ?lcCompany ORDER BY company], 'c_companylist')
>>

(On an infant's shirt): Already smarter than Bush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform