Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9, taking advantage of SQLIDLEDISCONNECT - How?
Message
From
16/03/2005 09:05:37
 
 
To
16/03/2005 08:01:34
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00996257
Message ID:
00996287
Views:
24
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform