Re: SQL connection timeout -- is it pretty useless or what?
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Fri, 7 Jul 2006 14:08:25 -0700
The issue is usually that the timeout counter does not start until network
connectivity has been established. If the NIC card can't see the wire, it's
programmed to wait for quite some time before complaining. This is by design
and due to the way the TCP protocol works--it permits you to move wires
around or use a switch/router/hub without worrying that it will disturb the
network. We've talked about this issue for decades--there is no easy way to
resolve it.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Rob R. Ainscough" <robains@xxxxxxxxxxx> wrote in message
news:Of95s0foGHA.2464@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to code a routine that will test the connection to a server and
I would like to specific how long (aka timeout) the .Open() should wait
before a timeout error is triggered.
I've tried "connection timeout=10;" in the connect string, but that still
doesn't timeout til 30 seconds have passed. I can't set the
Connection.ConnectionTimeout as that is a read only property. So am I out
of luck? Is there no way to quickly test a SQL connection in .NET 2.0?
Operative being quickly as in I can define how long to wait?
Please tell me I don't have to initiate a thread for the SQL connection
and have the thread stop after xx seconds. There must be a more simple
approach no?? VS 2005 is supposed to be RAD (rapid application
development) not WAAD (work around application development).
Thanks, Rob.
.
- Follow-Ups:
- Re: SQL connection timeout -- is it pretty useless or what?
- From: Rob R. Ainscough
- Re: SQL connection timeout -- is it pretty useless or what?
- References:
- SQL connection timeout -- is it pretty useless or what?
- From: Rob R. Ainscough
- SQL connection timeout -- is it pretty useless or what?
- Prev by Date: Re: Can VS2003 vb .net app connect to SQL Server 2005 Everywhere?
- Next by Date: Re: SQL connection timeout -- is it pretty useless or what?
- Previous by thread: Re: SQL connection timeout -- is it pretty useless or what?
- Next by thread: Re: SQL connection timeout -- is it pretty useless or what?
- Index(es):
Relevant Pages
|
Loading