Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do i limit records returned by sql passthrough comma
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01127919
Message ID:
01127930
Views:
12
>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

Select count(*) from MyTable where myCondition.

Then present the dialog to the user if the number is too big.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform