Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Time
Message
From
21/04/1999 12:11:11
 
 
To
21/04/1999 12:00:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00210595
Message ID:
00210603
Views:
28
>Is it possible to access and store the actual query time from a VFP SQL query?
>
Sure,
LOCAL lnSeconds, lcCursor

lnSeconds = SECONDS()

SELECT * ;
   FROM myTable ;
   WHERE RECNO() < RECCOUNT ;
INTO CURSOR ltCursor

lnSeconds = SECONDS() - lnSeconds

? lnSeconds

RETURN
There's probably something fancier, but this should work to withing 1/10000 or a second or so.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform