> 1. Make sure your username/password are correct. That's an excellent
> place to start. Most of the problems I've had with ASP have been
> because of this. Also, make sure the machine name is correct. Connect
> through another tool using the exact same info you're using in your
> ASP.
While checking username and password is not a bad idea, the error message
that HK newsgroup got was:
>> The browser returns an error:
>> "Microsoft OLE DB Provider for SQL Server error '80004005'
>> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
>> access denied."
This means that you don't even reach SQL Server, so your username and
password are never put to a test.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Sean McCown - 24 Jan 2008 01:50 GMT
Funny, I just entered in a wrong password on an ASP page and it gave me the
same error message. That said though, I was trying to go through the basic
steps of troubleshooting by getting him to verify that his username/password
are indeed what he thought they were and that he could verify connection from
another tool. This is the first step in getting to the root of the problem.
If that passed then you notice that I had him check that his sql box is setup
for external connections. The box is clearly up and running because he can
get to it locally. So it's logical to believe that the box either doesn't
accept external connections, or that something is wrong with his creds.
I'm curious as to why you felt it necessary to try to call out my first step
as being wrong somehow. Is there something you're trying to prove by coming
on and telling me I'm wrong? What did you hope to gain by specifically
telling me I was wrong instead of just letting the answer ride?
> > 1. Make sure your username/password are correct. That's an excellent
> > place to start. Most of the problems I've had with ASP have been
[quoted text clipped - 12 lines]
> This means that you don't even reach SQL Server, so your username and
> password are never put to a test.
Erland Sommarskog - 24 Jan 2008 08:53 GMT
> I'm curious as to why you felt it necessary to try to call out my first
> step as being wrong somehow. Is there something you're trying to prove
> by coming on and telling me I'm wrong? What did you hope to gain by
> specifically telling me I was wrong instead of just letting the answer
> ride?
Because that I have seen more than one post which have indicated that people
have scratch their hair over usernames, authentication etc when they have
seen this message, being mislead by the "access is denied" part.
When you get this message, you are not able to reach SQL Server at all, and
it does not matter whether the username and password you entered are valid
or not.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx