HostWeb Forums » Microsoft Databases » microsoft.public.sqlserver.securitytools » Urgent problem about SQL Server

Topic: Urgent problem about SQL Server

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 1/22/2008 12:53:05 PM

By: HK newsgroup
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



Replies below ↓

Replies

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 3/8/2008 11:49:37 PM

By: PT

Re: Urgent problem about SQL Server


"HK newsgroup" <paul@websonic.com.hk> wrote in message
news:%231YFZBTXIHA.4712@TK2MSFTNGP04.phx.gbl...
> 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?

Can you connect via SSMS from a remote machine, or just on the local server?



Contents
Home
Forums
About Us
Contact Us
Web Hosting:
Hosting Providers
How to choose a name
What is a Hosting Provider
Hosting Types
Choosing the right plan
 
Search
 
Login to HostWeb.com
Email
Password
If you do not have an account with us yet, join now - it's FREE!