R
Roger Tranchez
Hello,
We have an application that use data from our sql server.
We access this information trough TableAdapters, direct queries and
datacontextS (LINQ).
All these methods use the same CONNECTION STRING located on the application
settings.
We don't explicitly open or close connections on these objects as we let the
connection pool do the work.
The problem is that we have a lot of portable computers and external
workers, and they lost connection when they unplug their computers or the
remote connection fails.
Is there any way to control FROM A CENTRAL POINT (event) when the connection
is lost?
I was thinking if the connection pool have such an event, or similar.
I don't want to use a timer that "pings" the server: this seems to me kind
of ugly.
Thanks,
We have an application that use data from our sql server.
We access this information trough TableAdapters, direct queries and
datacontextS (LINQ).
All these methods use the same CONNECTION STRING located on the application
settings.
We don't explicitly open or close connections on these objects as we let the
connection pool do the work.
The problem is that we have a lot of portable computers and external
workers, and they lost connection when they unplug their computers or the
remote connection fails.
Is there any way to control FROM A CENTRAL POINT (event) when the connection
is lost?
I was thinking if the connection pool have such an event, or similar.
I don't want to use a timer that "pings" the server: this seems to me kind
of ugly.
Thanks,