Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SQL-Server does not exist or access denied

613 views
Skip to first unread message

Ch. Marx

unread,
Apr 22, 2004, 4:28:06 AM4/22/04
to
Hi all,

I have a VB6-application that opens a ADO connection to a sql server
database at startup. Everything is ok, as long as there is not much database
work to do. As soon as I start a calculation that works a lot in the
database (reads and writes in appr. 10 tables), it takes about 1 minute and
I get the message: SQL Server does not exist or acess denied. Since the app
shows the status of the job you can see that the error occurs always after
exactly the same number of database operations done. the strange thing is,
that the error shows up on XP prof. only. The same app doing the same job on
the same database works fine in W2K.
What I've tried so far:
- installed all available service packs and hotfixes on XP maschine
- updated existing MDAC 2.71 to 2.8
- changed connection string to use OLEDB instead of DSN
- deaktivated pooling
The error does NOT occur when working with MSDE, no matter wether local or
remote installation.

Any hint appreciated
Chris


Neil

unread,
Apr 23, 2004, 2:17:41 AM4/23/04
to
Are you creating new database connections without closing the old ones?

Ch. Marx

unread,
Apr 23, 2004, 3:19:31 AM4/23/04
to
"Neil" <ne...@ironbark.com.au> schrieb im Newsbeitrag
news:123526c9.04042...@posting.google.com...

> Are you creating new database connections without closing the old ones?

No, I open the connection on startup and keep it open until the program
terminates.


Chris Marx

unread,
May 10, 2004, 8:45:06 AM5/10/04
to
I solved the problem creating these entries in the registry:
path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\Tcpip\Parameters
type: DWORD
name: TcpTimedWaitDelay
value: 30 (decimal)

type: DWORD
name: MaxUserPort
value: 10000 (decimal)

For details see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;328476

Chris

Don Kitchen

unread,
Jan 27, 2005, 4:16:29 PM1/27/05
to
We were also having this same exact problem after we changed one of our
2 web servers over from Windows 2000 to Windows 2003. We looked and
looked and found tons of people having the same problems, none of which
had answers. We were THRILLED when we finally found this thread. It
was honestly the first time somebody had the same problem we did and
where somebody else had solved it.

We created these two registry keys on our Windows 2003 server and
everything has been working great ever since. Actually, it's been
working better than the 2000 machine is. There are less errors and the
site seems to run faster. I know IIS6 is faster, but we can tell that
it's running a little better.

What we did was tweak the numbers here a bit to use 15 for the
TcpTimedWaitDelay and 40000 for the MaxUserPort. We found that these
numbers worked better for us.

Anyway, I just wanted to post in case somebody else that's having this
super annoying and frustrating problem comes across this message.
There is hope and there is a fix.

The craziest thing of all, which still drives me nuts, is the fact that
nobody knows why it happens.
Oh well, as long as it's working I'm happy!

Frank Lehmann

unread,
Jan 28, 2005, 3:28:40 AM1/28/05
to

"Don Kitchen" <donki...@gmail.com> wrote in message:
news:1106860589.8...@z14g2000cwz.googlegroups.com...

> We were also having this same exact problem after we changed one of our
> 2 web servers over from Windows 2000 to Windows 2003. We looked and
> looked and found tons of people having the same problems, none of which
> had answers. We were THRILLED when we finally found **this thread**. It ...

Hi Don,

What is **this thread**? What thread are you referring to?
Your answer begins as new thread in my OE news reader, and I'd be THRILLED
to know where you found that "does not exist" solution.

Regards,
Frank


Sue Hoegemeier

unread,
Jan 28, 2005, 8:32:22 AM1/28/05
to
There is no one solution for the error - it depends on a lot
of different things. If you have pooling disabled, you can
reference the articles Don referred to for changes in the
registry:
TCP/IP Settings for SQL Server Drivers When Pooling Is
Disabled
http://support.microsoft.com/?id=328476
PRB: "WSAEADDRESSINUSE" Error Message When You Try to
Connect Through an Anonymous Port After You Increase the
IMAP Connection Limit
http://support.microsoft.com/?id=319502

-Sue

Don Kitchen

unread,
Jan 31, 2005, 5:01:19 PM1/31/05
to
Frank. Are you still looking for answers? If so, please email me
directly.

donkitchen at gmail dot com

Frank Lehmann

unread,
Feb 1, 2005, 2:57:01 AM2/1/05
to
Thank you both, Sue and Don, for your answers.
The registry settings MaxUserPort and TcpTimedWaitDelay are the
perfect solution for my problem.
I've read somewhere that this behavior of lots of TCP connections
not being reused came into Windows out of security reasons
in order to prevent that hackers gain access to a server through such
an open channel without authentification.

Regards,
Frank


rizwan

unread,
Feb 14, 2005, 6:44:40 AM2/14/05
to
Chris Marx & Don Kitchen thank you for your valuable inputs, it helped
me solve our problem. I have been searching this for last two weeks.

Thanks again

0 new messages