Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set SQL Connection Timeout
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Set SQL Connection Timeout
Miscellaneous
Thread ID:
01679714
Message ID:
01679714
Views:
53
Hi,

I am working on the approach of reconnecting to the SQL Server when the connection is lost due to being idle (the approach shared by Walter Meester).

My SQL Server is on the same PC where I do the development. And I have never had - on this PC - a problem where the connection would be lost due to being idle. Maybe because I am on the computer 24/7 :)

I am using SQLSTRINGCONNECT(cConnString) to connect to the SQL Server. Is there a way to set up a time out so that if the application is idle for, say 5 minutes, the connection is lost?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform