Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set SQL Connection Timeout
Message
From
09/04/2021 10:35:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01679714
Message ID:
01679717
Views:
37
>>Since you're alone on your box, why write code to test when you can simply open the services applet in the control panel and stop the SQL server service, just for testing?
>
>First, thank you. I thought about it. But this will disconnect not because the application is idle but for "another" reason. And I can't test the case where - in case of a customer - the connection is lost due to being idle.
>Unless you think it is the same, being idle or service has stopped.

What would the difference be? Your connection handle is invalid in both cases, and that's what you need to fix by reconnecting. If I'm not mistaken, idledisconnect() fixes both. But let's wait for Walter on this one.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform