Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set SQL Connection Timeout
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Set SQL Connection Timeout
Divers
Thread ID:
01679714
Message ID:
01679714
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform