Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incrementally Pulling Records with SQL Pass-Through
Message
De
01/05/2001 10:00:10
 
 
À
29/04/2001 12:25:11
Phillip Perkins
Technology Consulting, Inc.
Louisville, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00501241
Message ID:
00501925
Vues:
15
Thank you both for your suggestions. Is there any way to reference the RECNO() of records generated in a cursor, i.e. something like WHERE RECNO() >= 1 AND RECNO() < 11? By the way, the database that I am pulling from is DB2. Thanks.


>Did you try a CURSORSETPROP("MaxRecords", 10, "tablename") or CURSORSETPROP("FetchSize", 10, "tablename")? The way I figure it, SQL creates a cursor on the server-side. FoxPro pulls all that data into one large local cursor, unless you specify otherwise. When you send updates, FP actually updates the server-side cursor which SQL, in turn, uses to update the data.
>
>Phillip
>
>>I am using SQL Pass-Through to pull a cursor from a remote database. The cursor is usually rather large and takes more time than what is desired to pull all the generated records down from the server. What would be the best to incrementally pull the records, i.e. records 1 through 10, then go back and get 11 through 20, and so on to the end? TIA.
>>
>>Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform