Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i limit records returned by sql passthrough comma
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01127919
Message ID:
01127922
Vues:
14
>I am using SQL passthtrough to retrieve records via the sqlexec command
>is there a way to limit the number of records returned... i.e. the first 5 for example.
>
>I am only pulling them to view the data to make a decision on whether to pull all of the data...
>
>User doesn't want to wait for the full table to come across the network...
>
>Some tables have millions of records!
>
>Only need a few to help decide if they want all of them...
>
>Mike



Limit your query to a restricting condition (you always should) and/or use the TOP modifier.
SELECT * TOP 5 FROM table


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform