473,756 Members | 4,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Computerna me 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_Computerna me 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 1625

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

Similar topics

1
1343
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 but he claims it's not here. Now at first I didn't beleive him, however, I wondered if now that Asp.Net is integrated into IIS in WIndows 2003, is there a separate process? In the end, what I want to find out is, on a default installation of...
0
2129
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 and setting WebSite2 as the host header name. 2. I can browse to this web site using IE http://WebSite2 buy placing a an entry in my host file, 127.0.0.1 WebSite2. 3. I want to Create a new ASP.NET Web Application using Visual Studio.Net 2003 at...
2
329
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 a Key called "TEST" under the Application in the Registry based on the microsoft article 329291 and using Solution 1 in that article In the code I basically do the following Dim MyLog as new EventLog( MyLog.Source = "TEST
2
3215
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 database. Tried all possible combinations but it still fails. I have Windows 2003 server having SQL Server 2000 installed with SP2. The installation went Ok on a XP professional machine and I was able to create database and user logins etc on...
7
1890
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 but he claims it's not here. Now at first I didn't beleive him, however, I wondered if now that Asp.Net is integrated into IIS in WIndows 2003, is there a separate process? In the end, what I want to find out is, on a default installation of...
2
1677
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 and application running under Windows XP. I am using a set of classes that expose the COM Windows TaskScheduler. When I try to instantiate the COM class within an ASP.NET Application on Windows 2003 Server, I get an access denied, but not when...
0
862
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 project: Unable to start debugging on the web server. You do not have privileges to debug the web server process. The IDE returns the following output:
0
1783
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. Aside from having administrative rights, I have also put myself in the Debugger Users group. I have added ASPNET and even IUSR_SERVERNAME to the Debuggers group (don't worry, it's a dev server not a live machine) and I still get "Access Denied"...
0
1012
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 (401)unautorized. plz help
3
2796
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 server by using remote desktop connection. i have checked the printer checkbox under local resources, so that it maps the printer when i connect. I can also see the printer on my printer list when i am logged on to the windows 2003 server, but when...
0
9456
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
10040
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
9846
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
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3806
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
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.