Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Time
Message
De
21/04/1999 12:11:11
 
 
À
21/04/1999 12:00:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00210595
Message ID:
00210603
Vues:
27
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform