Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec() returns a maximum of 100 rows
Message
 
À
07/04/2005 20:45:35
James Chan
Objectmastery Pty Ltd
Hawthorn, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01002489
Message ID:
01002730
Vues:
19
James,
it appears from your code that you have asynchronous turn on. I would suggest that you first set it off using:
=sqlsetprop(mHandle, 'asynchronous', .F.)
*
and see if that makes any difference. Also, you might want to try this code with Asnyc on. That's the way I have used it. Not sure if it makes any difference but...
SQLResult = sqlexec(h, "select * from MySQLTable", "MyCursor")
do while not SQLResult > 0
  SQLResult = sqlexec(h)
enddo
HTH, John.


>When I issue the following SQLExec(), I got a maximum of 100 rows in MyCursor. What do I need to do to retrieve all rows to MyCursor?
>
>SQLResult = sqlexec(h, "select * from MySQLTable", "MyCursor")
>do while SQLResult == 0
>  SQLResult = sqlexec(h)
>enddo
>
>
>Thanks
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform