Question

SQL2000 server - error 80004005 Server does not exist or access denied (I've verified everything 20 times now)

Asked by: Mustangz

I have an asp/javascript application (written by someone else) that I've just thrown up on an IIS server. It uses a SQL2000 DB backend.

I've loaded the DB onto my local dev SQL2000 server and can connect to this DB just fine from the application. Now when I export this DB to the production server and attempt to connect the application to IT, I get the wonderful error above. I have checked over everything 20 times at LEAST. The user/login exists, and it has the proper permisisons/rights (ie. the same as I have on my dev server which is working).

Connection string for local machine which is working:
var MM_eDFMEAConnect_STRING = "Provider=SQLOLEDB;Data Source=ANNMIW40QZG31;User ID=eDFMEAuser;Password=password;Initial Catalog=PSCO_eDFMEA"

Connection string for remote production server (not working):
var MM_eDFMEAConnect_STRING = "Provider=SQLOLEDB;Data Source=marmissql01\auto_sql;User ID=eDFMEAuser;Password=password;Initial Catalog=PSCO_eDFMEA"

Can someone see something I am missing? or suggest something to try?

TIA

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-09-23 at 07:40:46ID21142365
Tags

server

,

does

,

exist

,

sql

,

access

Topic

MS SQL Server

Participating Experts
5
Points
0
Comments
41

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SQL2000
    I will be needing to connect to a SQL2000 database with Java Client/Server Application. I see there a few options: Sprinta, Jdriver, MS JDBC API. I lean towards the MS JDBC API. Any reasons to to choose others over MS JDBC API? Does the MS JDBC API work well?
  2. Restricting workstation access to SQL2000
    I have 60 workstations on a W2K server LAN. SQL2000 is loaded on a server along with some other programs that all users need access to. Only about 20 of the workstations need to access data that is stored in SQL. I don't want to have to purchase unnecessary device CALs fo...
  3. ASP and simple SQL2000 database
    I have created a simple database 'IP-address' on a SQL2000 server. IP-address contains three fields IPnr, date and Country. I need to connect to the database and display the table, with an option that allows the user to add, edit and delete rows. How could this be written i...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ShogunWadePosted on 2004-09-23 at 07:42:07ID: 12133712

does the authentication mode on the production server permis sql logins or is it set to windows authentication only?

 

by: ShogunWadePosted on 2004-09-23 at 07:43:42ID: 12133726

also i notice you are using a named instance.  on production.    are you sure there are no IP port conflicts eg default instance and named instance but listening on 1433

 

by: MustangzPosted on 2004-09-23 at 07:50:55ID: 12133820

I have many other DB's running on that same production server that I use SQL authentication so that isn't an issue.

I'm not sure how to go about checking for port conflicts. But, again I have many other DB's on this server, running off of the same named instance and am not having any other issues.

 

by: ShogunWadePosted on 2004-09-23 at 07:53:50ID: 12133864

hmm ok,     I assume that youve checked that the SQL login has access to the intial catalog ?

 

by: MustangzPosted on 2004-09-23 at 07:56:25ID: 12133893

the SQL login has Public, datareader and datawriter permits to this DB.

 

by: ShogunWadePosted on 2004-09-23 at 07:57:37ID: 12133903

have to you tried establishing a connection to the this database via QA using the same name & pwd?

 

by: ShogunWadePosted on 2004-09-23 at 07:58:38ID: 12133918

and the database is not in DBO use only mode, etc.

 

by: MustangzPosted on 2004-09-23 at 08:00:07ID: 12133940

Just did that, and it connected, showing me the DB and all the tables no problem.

 

by: ShogunWadePosted on 2004-09-23 at 08:02:47ID: 12133974

this is probably a silly question so forgive me for asking it (but i want to eliminate all the opbious thinks first).     I dont suppose you have in your vb code forgotten to pass the connection string in  to the connection.open  

 

by: MustangzPosted on 2004-09-23 at 08:07:29ID: 12134013

The application works when connecting to my local dev sql server. All I'm changing is the Data Source to the production server name, none of the code is being touched.

 

by: MTillettPosted on 2004-09-23 at 09:32:18ID: 12135072

Mustangz,

Here's a snippet from BOL.  To find the full article enter 'Controlling Net-Libraries' in the search tab.

========== BOL ==================
Controlling Net-Libraries and Communications Addresses

When the SQL Server 2000 client Net-Libraries connect to an instance of SQL Server 2000, only the network name of the computer running the instance and the instance name are required. When an application requests a connection to a remote computer, Dbnetlib.dll opens a connection to UDP port 1434 on the computer network name specified in the connection. All computers running an instance of SQL Server 2000 listen on this port. When a client Dbnetlib.dll connects to this port, the server returns a packet listing all the instances running on the server. For each instance, the packet reports the server Net-Libraries and network addresses the instance is listening on. After the Dbnetlib.dll on the application computer receives this packet, it chooses a Net-Library that is enabled on both the application computer and on the instance of SQL Server, and makes a connection to the address listed for that Net-Library in the packet. The connection attempt fails only if:

The requested instance of SQL Server 2000 is not running.


None of the Net-Libraries that the instance of SQL Server 2000 is listening on is active on the application computer.

========== end BOL ===================

As you have previously stated, other apps. are able to connect, that leaves no. 2  Have you check that there is a common net-lib between the client and the server?  I didn't read much further but you might find some other clue there.

MC Mikey T

 

by: MustangzPosted on 2004-09-23 at 10:30:53ID: 12135681

I'm not sure how to check on the net-lib's to verify between client and server. And by this you mean between IIS (client?) and the SQL server (server) correct?

Just to keep this in mind. I have many other applications running off of this same IIS server using the same SQL server, so is there something that would be in the application (again which I didn't write) that specifies another 'net-lib'? if so, what will it look like in the code?

Also, this app works when connecting to my local dev SQL server, which is just a plain/basic install, I've done nothing special and added/enabled nothing additional.

This is the exact error on the page:

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


This is the CODE from the page showing LINE 52:

<%
var SQL="SELECT * From dbo.tblOwners ORDER BY RealName";

var WhoRecordSet = Server.CreateObject("ADODB.Recordset");
WhoRecordSet.ActiveConnection = MM_eDFMEAConnect_STRING;   <------- LINE 52
WhoRecordSet.Source = SQL;
WhoRecordSet.CursorType = 0;
WhoRecordSet.CursorLocation = 2;
WhoRecordSet.LockType = 1;
WhoRecordSet.Open();
%>

 

by: ShogunWadePosted on 2004-09-23 at 10:32:56ID: 12135693

i dont think it's a library issue ( this was pretty much my initial thought) until you  said you have other apps using same instance running on same machine.   pretty much this eliminates protocol stuff.

 

by: MustangzPosted on 2004-09-23 at 12:44:48ID: 12136996

Any other suggestions or ideas would be greatly appreciated. Really need to have this app going by tomorrow afternoon.

 

by: mironPosted on 2004-09-23 at 22:55:14ID: 12140367

have you tried to connect to sql server from the machine where you experience the error.

 

by: MTillettPosted on 2004-09-24 at 03:07:52ID: 12141364

If you're running ASP.NET maybe this will help.

http://support.microsoft.com/default.aspx?scid=kb;hu;315159

 

by: MustangzPosted on 2004-09-24 at 04:22:48ID: 12141672

miron: I've connected to the DB with QA from a machine that experiences the error in the web browser, but not from the IIS server.

MTillett: this app is asp 3.0/javascript, but I'll take a look at the article later this morning and see what I can find, thanks.

 

by: philippe_leybaertPosted on 2004-09-24 at 07:44:00ID: 12143705

Is there a firewall and/or router between the IIS machine and the SQL Server machine ?

 

by: MustangzPosted on 2004-09-24 at 07:48:29ID: 12143756

No.. and once again, there are many other applications running on the same IIS server that are using the SAME SQL server and named instance, so there is nothing between the IIS server and SQL server having any problems. It seems to me that it has to be related to the DB itself, but I don't know how.

I have the DB locallly on my SQL dev server and it connects to and works off of that just fine. I then exported this working DB to the production SQL server and verified users/logins/permissions and it just doesn't work, giving me the original error mentioned in my oringinal question.

Come on SQL experts! I'm a bit of a noob and must be missing something!

 

by: ShogunWadePosted on 2004-09-24 at 08:39:30ID: 12144368

"I then exported this working DB to the production SQL server and verified users/logins/permissions and it just doesn't work"

ok,  might not solve it but just to entertain a theory can you delete the login and recreate it and then try again

 

by: MustangzPosted on 2004-09-24 at 08:42:51ID: 12144421

I've done that about a dozen times.. created several new users, used a couple different existing ones.. and nothin...

 

by: ShogunWadePosted on 2004-09-24 at 08:43:38ID: 12144434

ok.   its not a SID problem then :(

 

by: ShogunWadePosted on 2004-09-24 at 08:44:07ID: 12144442

how did you export the db ?

 

by: MTillettPosted on 2004-09-24 at 08:47:14ID: 12144491

Given that you have connected to the DB w/ QA then that rules out security on the SQL Server login front.  To narrow it down as to whether it's 'access denied' or 'does not exist', turn on failed login auditing on the security tab of the propeties page for the SQL Server, you have to bounce SQL Server though.  You should see in the event log,  Window's and/or SQL Server's, the failed login details, if not then the login request is not reaching the SQL Server.  If you do see a failure, voila.

 

by: ShogunWadePosted on 2004-09-24 at 08:48:33ID: 12144507

good call

 

by: MustangzPosted on 2004-09-27 at 06:09:14ID: 12159669

ShogunWade:
I just used the export wizard to copy the DB to the production server.

MTillett:
Unfortunately I can't do that to the production server, but what could possibly cause it to fail? considering the username/password combo works with QA, and all the other apps running off the same IIS server are connecting and using this SQL server and named instance just fine?
Is there anything that could possibly be in the asp code that for some reason doesn't like a named instance DB?

 

by: ShogunWadePosted on 2004-09-27 at 06:17:12ID: 12159735

Is there a filewall involved?

 

by: ShogunWadePosted on 2004-09-27 at 06:17:32ID: 12159737

oops i mean firewall

 

by: MustangzPosted on 2004-09-27 at 06:30:58ID: 12159846

No there isn't.. all within the same intranet.

 

by: ShogunWadePosted on 2004-09-27 at 06:32:16ID: 12159858

hmmm.   im pretty much at a losss then im afraid

 

by: MTillettPosted on 2004-09-27 at 07:43:53ID: 12160633

Mustangz, hope you had a good weekend, didn't spend it thinking about this.

Could this possibly be an ADO timeout problem.  I think this error can be reported under this condition.  The ConnectionTimeout defaults to 15 secs. if yours is a busy environment, maybe that's it.  From what I've read of ADO (and I don't know a lot about this) the above property, ConnectionTimeout, can be adjusted on a Connection object but your ASP is not using an explicit one so you'd have to convert and add something like:

Dim sqlConn as ADODB.Connection

Set sqlConn = New ADODB.Connection

sqlConn.ConnectionTimeout = 60 (you can use 0 for infinite).

sqlConn.Open MM_eDFMEAConnect_STRING

I may have the syntax completely wrong, as I say, I'm no ADO newbie.

Mike

 

by: MustangzPosted on 2004-09-27 at 12:46:54ID: 12163647

WOW... I figured it out, and I can't believe it. I don't do JScript (which this app was written with), but decided to search on JScript connection strings and happened to notice one of them I stumbled upon had 2 backslashes \\ between the server name and the named instance for the data source. VOILA!

I thank both of you for your troubles and trying to help, but am not sure how to handle points and accepted answers... I think you both deserve some points for the worthy attempts, but the answer wasn't suggested. What should I do?

 

by: mironPosted on 2004-09-27 at 13:54:41ID: 12164275

Mustangz,

            thanks for sharing solution, please indicate if you agree with the suggested question closure.

Site admin,
           please keep the question, return the points to the user.

Miron.

 

by: MTillettPosted on 2004-09-28 at 02:28:39ID: 12167722

Mustangz:

Phew,

      that's a relief, glad to hear it, sanity intact.  Solving problems is usually about thinking simple.  Far too often I come across people who start blaming a bug in the O/S or the fact that the Earth's magnetic field has shifted.  Sounds like you've got a cool head though and it turned out to be something simple.  Narrowing the problem down helps, which was basically the angle I was taking.  

As I started this question with no points (being my first question) I'm happy to leave it with no points, just glad it's sorted.

Mike

 

by: ShogunWadePosted on 2004-09-28 at 03:05:57ID: 12167934

yes, thanks for that info,   I guess that Jscript must maybe use \ to indicate a control character thus \\ = \.   I learn something new every day.

I agree that you should keep your points, as self fix.   The reward for us is the knowledge of what to to suggest next time, and knowing that your problem is sorted.

 

by: MustangzPosted on 2004-09-28 at 10:00:20ID: 12171572

miron:
I agree with you suggestion, and thanks for the quick response.

Shogun and MTillet:
Thanks again for the help.

 

by: ShogunWadePosted on 2004-09-28 at 10:17:49ID: 12171807

your welcome

 

by: ShogunWadePosted on 2004-10-22 at 01:44:28ID: 12378715

PAQ + Points Refund

 

by: CetusMODPosted on 2004-10-28 at 14:39:12ID: 12438902

PAQed, with points refunded (250)

CetusMOD
Community Support Moderator

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...