Re: Reconnect does not work TADOconnection



Sorry, I didn't read your last post entirely. Here's the code.

http://skzimmelman.com/Articles/skzADOConnKeepAlive.html

A timer is set to enabled after the connection processess a command, and
disabled when a new command is started. So the ping should only be executed
after a set period of inactivity. In our case, 5 minutes seems to work
well.

The code that is used to "ping" is:

Execute('Exec sp_server_info 1',i,[eoExecuteNoRecords]);

So it shouldn't take too much bandwidth to test.

-Steve-

"Ron J" <rjohnson@xxxxxxxxxxxx> wrote in message
news:47cd8336@xxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Steve. 'ping' sounds like a good idea - I'll try it.

Funny thing for us is we have had this application on SQL2000 for 4 years
(400 users) and 1 or 2 of these drops per week. We upgraded the servers
(to Core2 x 2, SAN, SQL2005, 64bit W2K3) and we get about 100 per day (out
of 400 users). Some users are remote over T1 so they are really hot when
they have to restart the app (load time is 90 seconds over T1). [We are
porting to Web now]

On your timed ping, how often are you pinging the server to keep it
active? What kind of 'ping'? Just any simple short Select to do something?

Thanks,
Ron



.



Relevant Pages

  • Re: Good wireless signal - but browser cannot find it?
    ... But when I gave the command to see the route table, ... But his browser cannot find any connection and displays the error page ... The firewall is Norton - but disabling it temporarily made no difference. ... ping resolver1.opendns.com ...
    (microsoft.public.windowsxp.network_web)
  • Re: Missing items in XP
    ... ISP asked me to ping a site and ping was not recognized as a command. ... Isp man told me I had lost essential tools in XP. ... You can confirm this by opening a command prompt, changing to the windows\system32 directory, and running commands such as ping. ... Do I need those user variables? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: .bat file for "keep open ping" not working after WinXPsp2 clea
    ... with simply pasting your suggested ping to google in the command line again ... I don't know why it changed my ping from www.google.com to www.1.google.com ... If you do not get a response then there is something wrong ... This has nothing at all to do with the batch file. ...
    (microsoft.public.windowsxp.general)
  • RE: DNS Issues after setting up a WAN?
    ... We did the following on a PC on the remote side with IP Address 192.168.1.11. ... Without DNS suffix ... Command: ping rs-svr1.ruclaservices.local ...
    (RedHat)
  • Re: Remote Desktop/Networking
    ... Sorry for the mistake in the telnet command. ... The LivingRoom machine cannot exchange test packets ... Enable Remote Desktop on Living ... Ping statistics for 192.168.1.21: ...
    (microsoft.public.windowsxp.general)