473,395 Members | 1,624 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,395 software developers and data experts.

Windows 2003 - SQL server does not exist or access denied

Just wanted to share a solution I found to this common problem that I
have not yet seen posted.

I am in the process of migrating an application from NT/IIS 4.0/SQL 6.5
to Win2003.

The SQL server and ASP web application are on separate servers in an NT
domain. While migrating the web app to a Windows 2003 server (which is
not in the domain), I was unable to connect to the database via ODBC
using named pipes.

The error I recieved was the infamous 'SQL server does not exist or
access denied' -- far be it from Microsoft be more specific in their
error messages.

The trouble was, that every other console application and web server
except for my 2003 server was able to connect to the DB. Also, I was
able to test my DSN and do a successful ODBC ping on the 2003 server.

After pouring over dozens of articles in the MS knowledge base as well
as the usenet, I finally decided to do a packet trace on the difference
between the successful communicaitons and the failed ones.

Turns out that when you are using the ODBC utilities from the console
on the 2003 server, it passes the user credentials (which are needed
with named pipes) of whoever is logged in at the moment, while the IIS
server uses the IUSR_Computername local account to authenticate the SMB
session for the ODBC connection. Since my administrator accounts on
both servers had the same passwords, it was working in the console just
lovely.

Since the new server was not part of the domain, the connection was
being refused from the IIS point of view. All I had to do was to go to
the properties of my web site in the 2003 server and change the
'Anonymous Access' user account from IUSR_Computername to an account
that had permissions on the old domain. This resolved my issue.

Just thought I would share. Also, once I put the sniffer on the
network, it took me 5 mins to determine what the problem was, after a
half-day of trial and error.

You can download a free sniffer at www.ethereal.com

Good luck.

Greg

Jul 23 '05 #1
0 1600

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

Similar topics

1
by: Cliff Harris | last post by:
I don't currently have an installation of Windows 2003 server, or I could answer this myself. After having a client install ASP.NET on Windows 2003, I then tried to find the aspnet_wp.exe process...
0
by: Kieran Kelly | last post by:
Is it possible to create a new Web Application Project using Visual Studio.Net 2003 on Windows 2003 Server but no in the Default Web Site. 1. I have created a new Web Site in IIS called WebSite2...
2
by: Paul P | last post by:
I am having a problem writing errors to the application log on a Windows 2003 server running IIS 6 The error message is "InvalidOperationException: Cannot open log for source {0}." I have created...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
7
by: Cliff Harris | last post by:
I don't currently have an installation of Windows 2003 server, or I could answer this myself. After having a client install ASP.NET on Windows 2003, I then tried to find the aspnet_wp.exe process...
2
by: Craig Neuwirt | last post by:
Does a user being impersonated within and ASP.NET application (using programatic impersonation) on a Windows 2003 Server machine need any different privileges or policies than the same ASP.NET user...
0
by: jcomber | last post by:
Hi All, I'd be grateful for some help with debugging a Web application on a Windows 2003 server. When I run the project from the IDE I get the following error: Error while trying to run the...
0
by: Rico | last post by:
Helolo, I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS. I am working on an XPPro machine with VS 2003. I have installed the remote debugging components on the server....
0
by: =?Utf-8?B?U1MgbWFkaHU=?= | last post by:
Hi , I am using windows 2003 and .net 1.1 I am trying to download word document. this code works fine in windows 2000 . but when i access in windows 2003 server I get access denied...
3
by: printline | last post by:
Hello Guys I cannot print from a locally installed printer that is mapped to a windows 2003 sever. I have installed the printer locally and can print locally. I connect to the windows 2003...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.