Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9, taking advantage of SQLIDLEDISCONNECT - How?
Message
De
16/03/2005 09:05:37
 
 
À
16/03/2005 08:01:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00996257
Message ID:
00996287
Vues:
25
Hi

I'm not sure there is need to check for idleness. Actually, in an extended way of thinking, application idleness is not the same as sql connection idleness. For example, an accountant that downloads data for a report cand spend 2 hours on that report, doing whatever he does. The application is not idle, but the connection is. From this point of view, I think it's safe to execute SQLIdleDisconnect() immediately after the downloading data for report.

Thanks.


>Hi all,
>
>VFP9 offers a new SQLIDLEDISCONNECT( ) Function. According to on-line documentation it "allows a SQL pass-through connection or connections to be temporarily disconnected".
>
>The function works flawlessly. Black magic. The connection (the connection handle) gets recreated automatically when needed.
>
>It looks like SQLIDLEDISCONNECT would be best used after an amount of idle time (say a couple of seconds)... not whilst the user is active.
>
>The question is "how to trigger the function automatically" after a couple of seconds of idle time, probably using a timer. This question leads to another one: how can you check an application for idleness?
>
>Regards
>
>Francis
Grigore Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform