RE: Urgent problem about SQL Server



Couple things to try:

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.

2. Make sure your SQL box is setup accept external connections. You can do
that from Surface Area Configuration.

Since you're connecting with SQL auth none of the other IIS settings should
be a factor.

"HK newsgroup" wrote:

Hi,
I have a problem connecting my SQL Server 2005 from a ASP Webpage.

When I trying to connect using the following connection string:
"Provider=SQLOLEDB; Data Source =2xx.xxx.xxx.xxx; Initial Catalog = xxx;
User Id = xxx; Password=xxx"

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."

If I put the ASP page under the same local machine with the SQL Server, it
works fine.
However it failed to connect if I put the ASP page in another client
machine, which then remote connect to the SQL Server machine.

I am sure I have openned the port 1433 and 80, because I can connect by
using SQL Server Management Studio by using the same IP address, and I can
access the IIS thru a client machine.

Is there anything missing in my Win Server 2003 machine that blocked the
connection from Web? or any setting missing in the SQL Server to accept Web
connection?

thanks.
Paul



.



Relevant Pages

  • Re: ODBC timeout when xp_cmdshell execute a long script
    ... I have this problem that seems to be related to ODBC connection ... mainly by setting the connection object's timeout value to 0 ... I have an ASP page connecting to a SQL server retrieving data via a single ... Here's the snippet of my ASP ... ...
    (microsoft.public.sqlserver.programming)
  • Connection.Execute and SQL stored procedures
    ... ..asp, the connection object and MS SQL Server as the DB can help me out. ... Five of the six calls execute as expected. ... This particular stored procedure does quite a bit of work within the DB, ...
    (microsoft.public.sqlserver.odbc)
  • Re: Heres a rather broad question...
    ... I'm familiar enough with using ADO with VBScript/Javascript in ASP pages, ... authentication or permission issues with SQL Server 2000. ... IIS user doesn't have the proper permissions to access the database, ...
    (microsoft.public.data.ado)
  • Re: WAP, ASP engineer required - London
    ... > at the company I work for we need to hire in London a WAP ASP engineer ... > You should have experience of SQL Server database design and as ... online service development the ideal ... > candidate will be technically minded and have experience in SQL Server ...
    (microsoft.public.inetserver.asp.general)
  • Re: Test Platform for ASP [newbie]
    ... need an add in such as sun ASP ONE server. ... > 6.0 which will be deployed on IIS & a MS SQL Server db. ... > waste time & petrol & give up on flexibility. ... > Do I need IIServer for this or is there an alternative? ...
    (microsoft.public.inetserver.asp.db)