I'd try applying it first on server. It sounds like you may be getting into
for new connections or memory for new connections. For the first two you
can try to play with the following two reg keys. (Decrease the
TcpTimedWaitDelay). For the second you may need to add more memory (if sql
stays in the TIME_WAIT state when being closed. While a connection is in the
TIME_WAIT state, the socket pair cannot be reused. This is also known as the
the network. See RFC 793 for further details.
<stevehunter_1@hotmail.com> wrote in message
news:1128110959.712139.326900@g43g2000cwa.googlegroups.com...
> Brad, Thanks for your help. see my replies below:
>
>
> Brad Sarsfield wrote:
>> There are a number of things that could be going on here. Let's get some
>> more info on your environment
>>
>> What transport are you using (TCP, LPC, NP)?
>> TCP has is less overhead and network reads/writes over NP.
>> Check out the following KB's for tweaking your TCP ack depending on
>> your
>> environment
>>
http://support.microsoft.com/kb/328890/ >>
http://support.microsoft.com/default.aspx?scid=kb;en-us;q315669 >>
>
>
> I am using TCP/IP. Do I apply these KB articles to the Client or the
> SQL Server? The SQL Server is W2000, Client is 2003
>
>
>> There is also a limit on the number of open TCP ports that you can
>> have
>> at any given time.
>> There are others under HKLM\SYSTEM\CurrentControlSet\Services\TcpIp
>> check it out on MSDN.
>>
>
> At peak, we will open/close 100 connections a second.
>
>> Are you using SQL auth?
>> I have seen issues if the DC isn't available (network) and you're
>> using
>> domain users.
>>
>
> Using SQL Auth.
>
>> What is the load of the client(s)/server connecting? Are there any
>> specific
>> loads during failure time?
>> If either are under heavy memory / cpu pressure you could experience
>> dropped connecitons.
>
> During heavy use, we see the problem more, but I do not attribute it to
> load, i just attribute it to more connection attempts. So more
> connection attempts=more failures.
>
>
>> I would really like to help understand what's going on in your
>> environment.
>>
>> Have you considered using connection pooling? A million connections per
>> day
>> is about 10-12 new connections per second. That could be a significant
>> load
>> depending on how much work is going on in the engine.
>>
>
> I have considered connection pooling, but there is no performance issue
> doing it this way. It works very well otherwise. I would prefer a
> simple solution to the problem and would tackle connection pooling or
> some other method in the future when it is time to upgrade the
> application.
>
>
>> --
>> Brad Sarsfield [MSFT] bradsa(at)microsoft.com
>>
>> This posting is provided "AS IS", with no warranties, and confers no
>> rights.
>>
>> <stevehunter_1@hotmail.com> wrote in message
>> news:1128030310.743829.224010@g47g2000cwa.googlegroups.com...
>> >I get the following error when trying to connect to SQL Server
>> >
>> > SQL Server does not exist or access denied.
>> > ConnectionOpen (Connect()).
>> >
>> > Scenario:
>> >
>> > The application connects to SQL Server very frequently (million+ times
>> > per day). It fails with this error message about 100 times.
>> >
>> > The failure rate is not very high and unfortunately, I can not open one
>> > or more connections. I must open connection and close and do this
>> > again a million times.
>> >
>> > So I need to solve this problem. Where would you start? I set
>> > timeout to 2 minutes and this helped a lot, but i still get errors.
>> >
>