473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

APS.NET, IIS cannot connect to SQL Server box

Hi,

I am using the following connection string format in an ASP.NET 1.1
application to attempt to connect to a SQL Server on another machine.

Data Source=ServerName;Initial Catalog=DBName;User
ID=username;password=pwd;persist security info=True;

I am testing this asp.net app. from my local IIS to connect to a SQL Server
instance on another box. It will not work and I am unable to determine why, I
have verified by cutting and pasting the same connection string to a windows
app and the user name and password to isql and both are able to connect
without any problems. The really strange thing is if I use an ip address
instead of a name for the server I can get the web application to connect
without a problem.

The PC that the asp.net app is running on is WIN XP PRO with SP2 and the
most current updates, the SQL Server version is 2000 with the most current SP
and updates.

I think IIS is not able to resolve the name of the server therefore it can't
find it, but I don't know how to fix this.
I have run out of ideas please help.

Thank You


Nov 19 '05 #1
2 2390
Hi Chris,

If you replace ServerName with the IP address does it work?

Ken
MVP [ASP.NET]

"Chris Lane" <Ch*******@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Hi,

I am using the following connection string format in an ASP.NET 1.1
application to attempt to connect to a SQL Server on another machine.

Data Source=ServerName;Initial Catalog=DBName;User
ID=username;password=pwd;persist security info=True;

I am testing this asp.net app. from my local IIS to connect to a SQL
Server
instance on another box. It will not work and I am unable to determine
why, I
have verified by cutting and pasting the same connection string to a
windows
app and the user name and password to isql and both are able to connect
without any problems. The really strange thing is if I use an ip address
instead of a name for the server I can get the web application to connect
without a problem.

The PC that the asp.net app is running on is WIN XP PRO with SP2 and the
most current updates, the SQL Server version is 2000 with the most current
SP
and updates.

I think IIS is not able to resolve the name of the server therefore it
can't
find it, but I don't know how to fix this.
I have run out of ideas please help.

Thank You



Nov 19 '05 #2

"Ken Cox [Microsoft MVP]" wrote:
Hi Chris,

If you replace ServerName with the IP address does it work?


Yes, an IP address works and so does a fully qualified name, It's just not
able to resolve the name by itself.
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jack Smith | last post by:
Hello, I have PHP 4.3.1.1 running on Windows 2000 Server with IIS 5. This connects to an MS SQL 7 server running on a seperate NT4 box. Recently, this SQL7 Server had SQL7 Service Pack 4...
2
by: Hari Om | last post by:
Cannot connect as Internal Hello, I am using IBM AIX 5.1L box for Oracle 9.2.0.1. I cannot connect as internal to my DB INstance - wonder why? Here is what is do:...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
by: Steve - DND | last post by:
We've been experiencing some intermittent connectivity issues lately and cannot seem to find the cause. Basically we can sometimes connect to the SQL Server via the machine name, and then all of a...
5
by: smatta | last post by:
I have just installed MySql version 5.0-18 on Red Hat Fedora Core 4. It is running but I cant connect to it using MySql Query Browser running on my pc. >From my pc, I can telnet to the sql...
1
by: bitchanger | last post by:
I have installed an SQL Server 2000 Developer Edition (SP4) on a computer that has Windows Server 2003 on it.The server is connected to the workgroup "WORK" and has no Active Directory. Now I...
6
by: antonyliu2002 | last post by:
I was able to view table content easily before, but after I reinstalled everything, I cannot find the option to view table content in MS SQL Server Express. I can define table with no problem. ...
1
by: rubeel | last post by:
I cannot seem to connect to this Instance locally which was i able to in the past. I can connect to the instance from out side. The instance is running and the DBs in the instance are available and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.