473,425 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

ASP to SQL Server - Intermittent connection problems

Dan
We have a fairly large set of ASP.NET applications running on Windows 2003 SP1 server. The entire suite of software was originally written in ASP and ran on a Win 2k server. For about the last year, we have been working toward converting everything to .NET and we are close to have it all done. In the mean time, we still have a few portions of the software running in classic ASP.

Here is the problem. The ASP pages have been pretty reliable up until about two months ago. We upgraded our production servers from Win 2k to Win 2k3 (now SP1) and started getting intermittent errors when loading an ASP page.

Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/2003/PageName.asp, line #.

This generally happens on pages with larger sets of data and AFTER some of the data has loaded. All data on the page is retreived using te same connection so I do know that the connection string is ok. This happens at different points in the page and only happens once in a while. It looks like it may be dependant on the load on the servers.

I have googled this problem and found other postings concerning this same type of behaviour, but no solutions have been posted. If anyone has an idea or has seen this same problem and seen it fixed, PLEASE let me know what you have found.

Thanks in advance!
Dan

From http://developmentnow.com/g/62_0_0_0...sp-general.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Jul 22 '05 #1
10 5258
Dan wrote:
We have a fairly large set of ASP.NET applications running on Windows
2003 SP1 server. The entire suite of software was originally written
in ASP and ran on a Win 2k server. For about the last year, we have
been working toward converting everything to .NET and we are close to
have it all done. In the mean time, we still have a few portions of
the software running in classic ASP.

Here is the problem. The ASP pages have been pretty reliable up
until about two months ago. We upgraded our production servers from
Win 2k to Win 2k3 (now SP1) and started getting intermittent errors
when loading an ASP page.

Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied. /2003/PageName.asp, line #.


Could it be this?
http://support.microsoft.com/?kbid=328476

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #2
Dan


Thanks for the fast reply. I don't believe that this is the problem
though because we do have connection pooling enabled.

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
You can try to augment the timeout time for the connection. By default, it
is 15 seconds but if the server is really busy...

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
"Dan" <dn***********@yahoo.com> wrote in message
news:OV*************@TK2MSFTNGP12.phx.gbl...


Thanks for the fast reply. I don't believe that this is the problem
though because we do have connection pooling enabled.

*** Sent via Developersdex http://www.developersdex.com ***

Jul 22 '05 #4
Dan wrote:
We upgraded our production servers from Win 2k to Win 2k3
(now SP1) and started getting intermittent errors when
loading an ASP page.

Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB]...

^^^^^^^^

Are you explicitly requiring TCP/IP? Make sure this is in your connection
string (or use the client network utility to configure TCP/IP only):

Network Library=DBMSSOCN;

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #5
Dan
I have tried the suggestions from all of you here and hopefully this
will clear things up. There is another discussion on this same subject
at

http://www.codecomments.com/showthre...04be376f8527ff
29ae1&threadid=289607&perpage=40&pagenumber=1

Thanks for all the help and please let me know if anyone finds anything
else.
D

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #6
Dan wrote:
Thanks for the fast reply. I don't believe that this is the problem
though because we do have connection pooling enabled.


You DO realize that poor coding practices can disable connection pooling ...
here is one way to inadvertantly disable pooling:
http://support.microsoft.com/?kbid=271128

Other ways include using connection strings instead of explicit connection
objects when opening recordsets or using Command objects. More info here:
http://support.microsoft.com/default...b;en-us;191572

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #7
Dan
Thanks for the reply Bob. I was aware of some of the information that
you provided but not all of it. Much of the code that is still in ASP
was written several years ago and I have learned much since then ;) so
as we convert over to ASP.NET, our performance should increase.

The part of this that I do not understand is, we NEVER had this problem
until we upgraded our servers to 2k3. If the problem is related to
pooling and running out of available connections, why did we not run
into this on the other server. And for that matter, why not when our
entire code base was ASP?

I have seen many reports of people running into this same problem and it
always goes back to "It worked before we upgraded the server".

Thanks again to everyone...
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #8
Dan wrote:
Thanks for the reply Bob. I was aware of some of the information that
you provided but not all of it. Much of the code that is still in ASP
was written several years ago and I have learned much since then ;) so
as we convert over to ASP.NET, our performance should increase.

The part of this that I do not understand is, we NEVER had this
problem until we upgraded our servers to 2k3. If the problem is
related to pooling and running out of available connections, why did
we not run into this on the other server. And for that matter, why
not when our entire code base was ASP?


All I can do is speculate. Sorry.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #9

What was the resolution here?
I'm having the very same problem and have, it seems, tried all the
available information.

thanks!

--
critical
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Apr 13 '07 #10
critical wrote:
What was the resolution here?
I'm having the very same problem and have, it seems, tried all the
available information.
It seems the posts to which you are replying are no longer available so I
have no idea what problem you are having. Could it be this?
http://support.microsoft.com/default...b;en-us;328476
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Apr 13 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: DK | last post by:
I have a SP that I use to insert records in a table. This SP is called hundreds of times per minute. Most inserts complete very fast. And the profiler data is as follows: CPU: 0 Reads: 10...
1
by: Mansoor Azam | last post by:
We connect to a SQL 6.5 server (IP for example 202.64.213.11) on WIN NT using ODBC DSN and / or SQL Client (DB-LIB). Everthing was working fine then the some XP client machines (192.168.0.1 and...
2
by: Tim V. | last post by:
Here's the layout: AIX v5.2, DB2 v8 fp8 running in 64bit I've got a Multi-partitioned db running on lpar4 and I want to connect it to 2 instances running on lpar13. We'll deal with just 1...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
4
by: Roy Gourgi | last post by:
Hi, I just install MSDE 2000 on my computer and I am trying to make a connection with the server but it does not seem to be working. What am I doing wrong in the code below? When I open my...
6
by: Andrew | last post by:
Hell-hohoho to all... Just begun working with asp.net linking to sqlServer 2000, had some problems with the (null) user, but previous posts have got me past that by storing an identity in the...
3
by: EgoSum | last post by:
I can't connect app to SQLEXPRESS via the local network. It works on same PC. In SQL Server Configuration Manager > SQL Server 2005 Network Configuration > Protocols for SQLEXPRESS > TCP/IP and...
0
by: Homer | last post by:
Hi, I got "InnerException: Unable to connect to remote server"..."No connection could be made because the target machine actively refused it" when I attempted to send an email through my...
0
by: ryaneoghan | last post by:
hi, I was just wondering if anyone could help, i am trying to create a client and server socket connection in perl, i want to ask for name and then do a check on the name and ask for a secret word...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.