Midtown Computer Systems Enterprise

Convenient web based access to our favorite computer related Usenet groups.
MCSE.MS is not affiliated with Microsoft corporation, Cisco corporation, Oracle, CompTIA or any other vendor.
Check our Computer Hardware forum | Cell Phones reviews

Go Back  MCSE > Microsoft software reviews > Microsoft SQL server reviews > Connect


Connect microsoft.public.sqlserver.connect

 
 
Thread Tools Display Modes
  #1  
Old 06-08-04, 08:53 PM
SqlJunkies User
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
We have a classic ASP application which runs fine on NT Server, W2K Server and with SQL7.0 and SQL 2000.

However, we are having problems with IIS6.0 and Windows 2003 Server when connecting to a second Windows 2003 Server running SQL 2000 Server. IIS6.0 and SQL on the same server works fine.

We see intermittent connection problems resulting in:
Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

We have tried everything we have found trawling the web and still have no idea what is causing it.

One ASP script in particular that simply updates a table, fails most of the time but does VERY rarely run successfully. The same script NEVER failed under NT/SQL7.0 or W2K/SQL2000.

We have increased timeout settings in IIS and the ASP scripts themselves. We have changed the OLEDB connection to reference the SQL Server IP address instead of its name but nothing tried has made any difference.

Any suggestions would be gratefully received!

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
  #2  
Old 06-09-04, 08:43 PM
Kevin McDonnell [MSFT]
RE: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
That error message is too generic to give specific information as to why it
is failing.

Have you checked for locking /blocking on the server?
You state that the ASP page is performing an update.

Otherwise, have you made network traces from the IIS box to the SQL Server?
What protocols are you using?
Can you reproduce the problem /error using SQL Query Analyser or only from
within IIS?


Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.



  #3  
Old 06-23-04, 10:12 AM
dcase dcase is offline
Junior Member
Join Date: Jun 2004
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
I have this EXACT same problem. My ASP app works fine on Win2000, SQL Server 7 or 2000. 

I get the same intermittent connection problem only when SQL Server 2000 is on a Win2k3 box. It doesn't seem to be restricted to ASP/IIS6 connections. I have problems with Access 2000 and Enterprise Mgr. as well.

The ASP problem went away when I put SQL Server on the same box as IIS6, but this can only be a temporary solution.

I've scoured the forums as well and I've seen this problem described many times, but no solutions yet.
  #4  
Old 06-24-04, 07:41 AM
MUTU MUTU is offline
Junior Member
Join Date: Jun 2004
Re: Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
same here... I optimised the scripts to reduce the number of queries and I've managed to reduce the number of errors, but I haven't been able to eliminate them.

Windows 2000 used to work fine, but Windows 2003 on upgraded hardware and with a tenth of the number of queries (or less) gives problems.

Sometimes the problem occurs when I'm trying to get a recordset, and sometimes it occurs when I'm connecting to the SQL Server 2000 DB.
  #5  
Old 06-28-04, 10:08 AM
Joel
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
We're having the same problems, except with WScript since moving a
server over to Windows 2003 Server. We are connecting to SQL Server 7
on a local network, specifying TCP/IP in the connection string.

The connection failure is intermittent, but is most easily reproduced
by performing a loop where connections are opened and closed. That
will pretty much guarantee that the error will occur at some random
spot in the loop. Sometimes it fails on the first try, sometimes on
the 415th try. It seems to be completely random.

We have eliminated network issues as a possibility by isolating the
servers onto their own switch and have been able to mitigate the
problem by re-using database connections rather than opening new ones.

Probably we will open a ticket with MS soon.
If anybody has info on a fix, it would help us out tremendously to
hear about it.

Pseudo code to reproduce issue...

-------------------------------
begin loop

open database connection
execute a sql statement
close database connection
destroy connection

end loop

-------------------------------




MUTU <MUTU.18f155@mail.mcse.ms> wrote in message news:<MUTU.18f155@mail.mcse.ms>...
> same here... I optimised the scripts to reduce the number of queries and
> I've managed to reduce the number of errors, but I haven't been able to
> eliminate them.
>
> Windows 2000 used to work fine, but Windows 2003 on upgraded hardware
> and with a tenth of the number of queries (or less) gives problems.
>
> Sometimes the problem occurs when I'm trying to get a recordset, and
> sometimes it occurs when I'm connecting to the SQL Server 2000 DB.

  #6  
Old 06-28-04, 10:08 AM
Joel
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
We're having the same problems, except with WScript since moving a
server over to Windows 2003 Server. We are connecting to SQL Server 7
on a local network, specifying TCP/IP in the connection string.

The connection failure is intermittent, but is most easily reproduced
by performing a loop where connections are opened and closed. That
will pretty much guarantee that the error will occur at some random
spot in the loop. Sometimes it fails on the first try, sometimes on
the 415th try. It seems to be completely random.

We have eliminated network issues as a possibility by isolating the
servers onto their own switch and have been able to mitigate the
problem by re-using database connections rather than opening new ones.

Probably we will open a ticket with MS soon.
If anybody has info on a fix, it would help us out tremendously to
hear about it.

Pseudo code to reproduce issue...

-------------------------------
begin loop

open database connection
execute a sql statement
close database connection
destroy connection

end loop

-------------------------------




MUTU <MUTU.18f155@mail.mcse.ms> wrote in message news:<MUTU.18f155@mail.mcse.ms>...
> same here... I optimised the scripts to reduce the number of queries and
> I've managed to reduce the number of errors, but I haven't been able to
> eliminate them.
>
> Windows 2000 used to work fine, but Windows 2003 on upgraded hardware
> and with a tenth of the number of queries (or less) gives problems.
>
> Sometimes the problem occurs when I'm trying to get a recordset, and
> sometimes it occurs when I'm connecting to the SQL Server 2000 DB.

  #7  
Old 06-28-04, 11:23 AM
jmrosseau jmrosseau is offline
Junior Member
Join Date: Jun 2004
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Quote:
Originally posted by SqlJunkies User
We have a classic ASP application which runs fine on NT Server, W2K Server and with SQL7.0 and SQL 2000.

However, we are having problems with IIS6.0 and Windows 2003 Server when connecting to a second Windows 2003 Server running SQL 2000 Server. IIS6.0 and SQL on the same server works fine.

We see intermittent connection problems resulting in:
Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

We have tried everything we have found trawling the web and still have no idea what is causing it.

One ASP script in particular that simply updates a table, fails most of the time but does VERY rarely run successfully. The same script NEVER failed under NT/SQL7.0 or W2K/SQL2000.

We have increased timeout settings in IIS and the ASP scripts themselves. We have changed the OLEDB connection to reference the SQL Server IP address instead of its name but nothing tried has made any difference.

Any suggestions would be gratefully received!

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
  #8  
Old 06-28-04, 11:29 AM
jmrosseau jmrosseau is offline
Junior Member
Join Date: Jun 2004
Re: Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Quote:
Originally posted by jmrosseau
I had the same error message and my problem had to do with conflicting protocols. When I added "Network=DBMSSOCN;" to my connection string my page started working again.

I got my information through the microsoft website: http://support.microsoft.com/default...b;EN-US;328383

Here is what helped me:

Specify the protocol in your connection string. For example: "DSN=DSNName;SERVER=servername;DATABASE=YourDataBa seName;Network=DBMSSOCN;Address=IP_Address,1433;UI D=YourUID;PWD=YourPassword;"

In this example, you specify the network protocol as "DBMSSOCN", which means that you want to use the TCP/IP protocol. If you specify the protocol inside your connection string, Dbnetlib only uses the specified protocol and does not try any other protocol. Similarly, to enable Named Pipe protocol only, use a connection string similar to this: "DSN=DSNName;SERVER=servername;DATABASE=YourDataBa seName;Network=DBNMPNTW;Address=\\.\pipe\sql\query ;UID=YourUID;PWD=YourPassword;"
  #9  
Old 06-28-04, 07:11 PM
Lou Arnold
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
In case you haven't been told this already.....

The intermittant failures smack strongly of TCP/IP ports being
blocked.
A named instance of a server will begin hunting for a TCP/IP Port
between 1025 to 5000. Many of these ports are typical Trojan ports.

You may have read the following:
http://support.microsoft.com/?id=287932
http://support.microsoft.com/default.aspx?kbid=814130

Lou Arnold
Ottawa Canada


On 28 Jun 2004 07:54:29 -0700, jjimenez1984@yahoo.com (Joel) wrote:
[vbcol=seagreen]
>We're having the same problems, except with WScript since moving a
>server over to Windows 2003 Server. We are connecting to SQL Server 7
>on a local network, specifying TCP/IP in the connection string.
>
>The connection failure is intermittent, but is most easily reproduced
>by performing a loop where connections are opened and closed. That
>will pretty much guarantee that the error will occur at some random
>spot in the loop. Sometimes it fails on the first try, sometimes on
>the 415th try. It seems to be completely random.
>
>We have eliminated network issues as a possibility by isolating the
>servers onto their own switch and have been able to mitigate the
>problem by re-using database connections rather than opening new ones.
>
>Probably we will open a ticket with MS soon.
>If anybody has info on a fix, it would help us out tremendously to
>hear about it.
>
>Pseudo code to reproduce issue...
>
>-------------------------------
>begin loop
>
>open database connection
>execute a sql statement
>close database connection
>destroy connection
>
>end loop
>
>-------------------------------
>
>
>
>
>MUTU <MUTU.18f155@mail.mcse.ms> wrote in message news:<MUTU.18f155@mail.mcse.ms>...

  #10  
Old 06-28-04, 07:11 PM
Lou Arnold
Re: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
In case you haven't been told this already.....

The intermittant failures smack strongly of TCP/IP ports being
blocked.
A named instance of a server will begin hunting for a TCP/IP Port
between 1025 to 5000. Many of these ports are typical Trojan ports.

You may have read the following:
http://support.microsoft.com/?id=287932
http://support.microsoft.com/default.aspx?kbid=814130

Lou Arnold
Ottawa Canada


On 28 Jun 2004 07:54:29 -0700, jjimenez1984@yahoo.com (Joel) wrote:
[vbcol=seagreen]
>We're having the same problems, except with WScript since moving a
>server over to Windows 2003 Server. We are connecting to SQL Server 7
>on a local network, specifying TCP/IP in the connection string.
>
>The connection failure is intermittent, but is most easily reproduced
>by performing a loop where connections are opened and closed. That
>will pretty much guarantee that the error will occur at some random
>spot in the loop. Sometimes it fails on the first try, sometimes on
>the 415th try. It seems to be completely random.
>
>We have eliminated network issues as a possibility by isolating the
>servers onto their own switch and have been able to mitigate the
>problem by re-using database connections rather than opening new ones.
>
>Probably we will open a ticket with MS soon.
>If anybody has info on a fix, it would help us out tremendously to
>hear about it.
>
>Pseudo code to reproduce issue...
>
>-------------------------------
>begin loop
>
>open database connection
>execute a sql statement
>close database connection
>destroy connection
>
>end loop
>
>-------------------------------
>
>
>
>
>MUTU <MUTU.18f155@mail.mcse.ms> wrote in message news:<MUTU.18f155@mail.mcse.ms>...

 


Popular forums
A+ (A Plus) Windows 2000 Active directory Exchange 2000 information store
Network+ Windows XP Security Exchange 2000 server administration
MCSE .NET Web services SQL Server
Cisco certification ASP .NET SQL 2000 Programming
Windows 2000 Registry .NET XML Viruses


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:06 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright MCSE braindumps 2003-2006