Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC looses connection after a while
Message
From
08/11/2013 15:50:43
 
 
To
08/11/2013 15:23:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01587574
Message ID:
01587585
Views:
47
This message has been marked as a message which has helped to the initial question of the thread.
>>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.
>
>Yes, this is what I recommanded. But, I was just trying to see if this is a normal behavoir that it reacts like that.

The client-side software (Native Client, ODBC driver etc.) you're using to connect to the backend is its own process, it's not part of your app. As such it can do its own connection monitoring, pop up error messages or anything else it wants to do.

It looks like in some cases it's possible to instruct the client-side software what to do in case of errors e.g. http://technet.microsoft.com/en-us/library/hh213129.aspx

If you're going to wrap your queries in open/close wrappers then this all becomes moot anyways.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform