473,770 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=ServerNa me;Initial Catalog=DBName; User
ID=username;pas sword=pwd;persi st 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 2408
Hi Chris,

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

Ken
MVP [ASP.NET]

"Chris Lane" <Ch*******@disc ussions.microso ft.com> wrote in message
news:5E******** *************** ***********@mic rosoft.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=ServerNa me;Initial Catalog=DBName; User
ID=username;pas sword=pwd;persi st 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
2491
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 applied to it. After this Service Pack, the PHP apps could no longer connect to the database. Warning: mssql_connect() : Unable to connect to server: <mySQLServer> in <myPHPapp.php> on line 12.
2
21251
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: ------------------------------------------------------------------- $export ORACLE_SID=GATES
2
2133
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 issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
7
4536
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" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
8
5481
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
0
1048
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 sudden we'll no longer be able to. Once this happens, we need to use the server IP to connect. Then a few days later we'll be able to connect via the server name again. During this time we're always able to ping the server via it's machine name. ...
5
5093
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 server / port. I get back a garbled message: 5.0.18-standard§}WxyuadT,☻V6F?J5i1YMT= Should this be garbled ? or is there a problem ?
1
2498
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 cannot connect to that database server from other computers in the network. On the server itself, I can registrate the instance from the own SQL Server 2000 and also an instance from an other SQL Server 2000 installation on a Windows 2000 Server in...
6
13325
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. Check out the screen snapshot below, from which you'll see that the popup menu frrom right-clicking on the table name does not have the "Open table" option. What is going on? http://farm1.static.flickr.com/167/426251515_b839620d0b_o.png
1
5154
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 used successfully by the applications but i cannot connect to the instance using the enterprise manager. the error i get is SQL Server does not exist or access denied
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.