Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC looses connection after a while
Message
De
08/11/2013 14:58:02
 
 
À
08/11/2013 14:34:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587574
Message ID:
01587577
Vues:
51
>A VFP application, using ODBC, looses connection after a while. This could be related to the fact that there is a problem with the database server, network, restart of servers, etc. But, when it happens, it triggers a dialog on the console. And, there is a Try/Catch in the code. But, this is not intercepted by the Try/Catch. The dialog has priority. Anyone would know how to avoid that and catch it in the code?

If I'm looking for reliability I have connections open only the bare minimum amount of time needed to communicate with the backend. It used to be expensive to frequently connect and disconnect like that, but my understanding is modern versions of RDBMSs cache or pool connections so there's not much impact.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform