Re: Problem with database drop connection



You didn't mention what DB you are using. We had the same problem using MS SQL
Server. From our tests it appeared to be SQL Server terminating a connection
that hadn't been used in a while. To resolve the issue, we sub-classed the ADO
Connection and used a timer to sort of "ping" the server to keep the connection
alive.

Here's what we came up with.
http://www.skzimmelman.com/Articles/skzADOConnKeepAlive.html

It's been live in an enterprise company for about a year.

-Steve-

"Gerhard Venter" <IeatSpam4breakfast@xxxxxxxx> wrote in message
news:450068dc@xxxxxxxxxxxxxxxxxxxxxxxxx
I have an ADOConnection that I check if it is still connected before I execute
a query. Well if the database drops the connection for whatever reason, I found
that when I check the connected property of the connection it still shows
Connected=True. I only get the message"Communication link failure: Connection
was terminated" once I execute the query but I need to know before I execute or
better when it actually happens so I can trap for that.

Anybody know how to trap for disconnects initiated by the server side?



.



Relevant Pages

  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)
  • Re: Outgoing POP3 email missing/lost/not received
    ... ISP's mail server instead of the domain name on the ... SUMMARY OF SETTINGS FOR CONFIGURE E-MAIL AND INTERNET ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... port on the old router so I now have a segregated WLAN. ... be sure you do not enable any DHCP server in internal network. ... On the Connection Type page, click Broadband, and then click Next. ... On the Network Connection, You must enable and configure the network ...
    (microsoft.public.windows.server.sbs)
  • Re: Still cant connect to RWW or OWA remotely
    ... it certainly appears to be something about the SBS configuration. ... Meridian.local Ethernet adapter Local Area Connection: ... Windows SMALL BUSINESS SERVER 2003 Windows IP Configuration ... 192.168.254.254) directly to a port on the router and then ...
    (microsoft.public.windows.server.sbs)