Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL execution ...
Message
From
12/01/2006 12:38:12
 
 
To
12/01/2006 12:24:02
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086174
Message ID:
01086186
Views:
14
>Hi,
>
>When I run the same SQL statement locally on a local copy of the exact same tables my SQL stement executes within 3-4 seconds. Running the same query statement on the tables located on a file server where the "live" tables and databse reside completion of the statement takes 10-13 seconds and sometimes longer.

Well obviously there's the time it takes the data to get from the server to your m/c, then there's the contention between your user and other users of the network for time (just like the internet slows down when there's a lot of traffic)

>
>A. How can I speed this up?

Write more efficient SQL?

>
>B. Also as the user is waiting for the SQL to complete, is there a way to display some sort of "working/querying" bar so the user will know that the computer is working?

You could put up a Wait Window "Query in progress. Please wait ..." NoWait NoClear before the SQL and
Wait Clear afterwards.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform