Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum number of records to fetch
Message
De
01/04/2003 14:07:58
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00772480
Message ID:
00772602
Vues:
7
George,
Thanks for the quick reply.
>I'd try to limit the amount of data returned...
How? I don't see a SQLSETPROP argument that, for example, will let me set a max rows returned to 1000. How does the view designer's advanced query option do it? I would assume that we can somehow get to the same OBDC properties, but maybe not.

Gary

>>Hi all,
>>I'm trying to find out how to set the max records for an ODBC connection. I assume since it's setable for a remote view, it has to be able to be set for SQL pass through. Any suggestions?
>>
>Gary,
>
>I'd try to limit the size of the result set based on how many trips back and forth to the server is required. SQL Server for example use an 8K data page. Normally, the default packet size is 4K. Depending on the requirements, I'd try to limit the amount of data returned so that it's between 4 and 8K. This would mean two trips to the backend at most.
>
>The table design process should take this into account. For example, don't use a DateTime data type if a SmallDateTime will meet your needs. Being careful in this aspect will reduce the width of each row along more data to fit into a smaller space.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform