Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI have a problem trying to establish a connection to a SQL server database from an ASP classic, the web server (windows 2003) and the database server (SQL server 2000 SP3) are in the same machine, the code I use to establish the connection is something like this:
conn =createobject("ADODB.conne
conn.Open “Provider=SQLOLEDB.1;Passw
When I run the application appears the following error message
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/testsite/testpage.asp, line 14
I found the following Microsoft KB article http://support.microsoft.c
I think the error is related to IUSR_MACHINENAME or IIS permissions, because the following.
• When I change the connection to another database server a similar error occurs.
• I have tried changing the connection string to use ODBC and the error remains.
• I wrote a sample page with the same code in a client-side script, and run it in the server console and it works ok.
• The error occurs only in that web server, if I change the application to another web server it works fine, even if it uses the same database server.
• The ASP .NET sites in the same server are OK.
Any idea?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
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.
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.
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.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
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.
Business Accounts
Answer for Membership
by: hongjunPosted on 2004-10-21 at 06:53:51ID: 12369907
Comments are available to members only. Sign up or Log in to view these comments.