473,406 Members | 2,894 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,406 software developers and data experts.

Windows 2003 Server and ASP

Hi,
I am unable to connect to a database in my SQL 2000 Server installed on
a Windows 2003 Server machine from an asp page. It gives the the
following error:

Microsoft OLE DB Provider for SQL Server (0x80004005)
Login failed for user 'sa'. Reason: Not associated with a trusted SQL
Server connection.

I also sometimes get:
MSDataShape (0x80004005)
Data provider could not be initialized.

I can connect with the same connection string and parameters from a
visual basic 6 application.

I can also connect the web client with the same DB in SQL 2000 running
on Windows 2000/XP.

The authentication mode is mixed.

I believe it is something to do with security. Please advise me on what
to do. It is very urgent.

Jul 23 '05 #1
11 2559
You may be able to find something regarding this by searching the
dotnetnuke.com forums, as they have dealt with accessing SQL server
from asp a great deal.

Jul 23 '05 #2
Hi

The SQL Server is setup to only accept NT Integrated Security. You can
change it to mixed mode, see BOL.

AND, do not use the sa account to connect your web site to your DB. You are
asking to get hacked, your data stolen and published on the internet. Use a
low privileged account for this. Look up security in SQL Server 2000 Books
Online

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mi**@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

<Co********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi,
I am unable to connect to a database in my SQL 2000 Server installed on
a Windows 2003 Server machine from an asp page. It gives the the
following error:

Microsoft OLE DB Provider for SQL Server (0x80004005)
Login failed for user 'sa'. Reason: Not associated with a trusted SQL
Server connection.

I also sometimes get:
MSDataShape (0x80004005)
Data provider could not be initialized.

I can connect with the same connection string and parameters from a
visual basic 6 application.

I can also connect the web client with the same DB in SQL 2000 running
on Windows 2000/XP.

The authentication mode is mixed.

I believe it is something to do with security. Please advise me on what
to do. It is very urgent.

Jul 23 '05 #3
Hi

The SQL Server is setup to only accept NT Integrated Security. You can
change it to mixed mode, see BOL.

AND, do not use the sa account to connect your web site to your DB. You are
asking to get hacked, your data stolen and published on the internet. Use a
low privileged account for this. Look up security in SQL Server 2000 Books
Online

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mi**@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

<Co********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi,
I am unable to connect to a database in my SQL 2000 Server installed on
a Windows 2003 Server machine from an asp page. It gives the the
following error:

Microsoft OLE DB Provider for SQL Server (0x80004005)
Login failed for user 'sa'. Reason: Not associated with a trusted SQL
Server connection.

I also sometimes get:
MSDataShape (0x80004005)
Data provider could not be initialized.

I can connect with the same connection string and parameters from a
visual basic 6 application.

I can also connect the web client with the same DB in SQL 2000 running
on Windows 2000/XP.

The authentication mode is mixed.

I believe it is something to do with security. Please advise me on what
to do. It is very urgent.

Jul 23 '05 #4
Hi Mike,
Thanks for reply.
My authentication mode is already mixed.
I can connect with exactly the same string from a Visual Basic 6
application.
I will create a low privileged user once I am able to connect.

Jul 23 '05 #5
Hi Mike,
Thanks for reply.
My authentication mode is already mixed.
I can connect with exactly the same string from a Visual Basic 6
application.
I will create a low privileged user once I am able to connect.

Jul 23 '05 #6
Stu
" I can connect with exactly the same string from a Visual Basic 6
application."

That, to me, indicates that it has to be a setting for your ASP
application; is it running on the same box as your SQL Server? I know
that they changed some of the settings for asp in Windows 2003, but I'm
not sure what it was.

I hope you posted this to an asp.net forum, because they'll probably be
more help.

Good luck,
Stu

Jul 23 '05 #7
Stu
" I can connect with exactly the same string from a Visual Basic 6
application."

That, to me, indicates that it has to be a setting for your ASP
application; is it running on the same box as your SQL Server? I know
that they changed some of the settings for asp in Windows 2003, but I'm
not sure what it was.

I hope you posted this to an asp.net forum, because they'll probably be
more help.

Good luck,
Stu

Jul 23 '05 #8
Thanks Stu. I will post in the ASP site right away.

Jul 23 '05 #9
Thanks Stu. I will post in the ASP site right away.

Jul 23 '05 #10
Hi Shuma,
I have looked in the dotnetnuke forum but I cannot get a particular
post that deals with my issue. Most of the posts assume the user has
not set up mixed mode authentication and this is what they provide as a
solution.

Jul 23 '05 #11
Hi Shuma,
I have looked in the dotnetnuke forum but I cannot get a particular
post that deals with my issue. Most of the posts assume the user has
not set up mixed mode authentication and this is what they provide as a
solution.

Jul 23 '05 #12

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

Similar topics

6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
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...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
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...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
3
by: Vinod R.Shenoy | last post by:
Hi All, Came across a post wherin you had helped somebody with a similar problem and was wondering if you could help us out with it. Our problem is , We have a development SQL Server 2000...
7
by: =?Utf-8?B?RWRkaWU=?= | last post by:
We have an odd situation with some of our single-threaded CPU-bound C++ programs. They run between 2 and 4 times faster on Windows XP than on windows Server 2003 on the same Xeon hyperthreading...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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
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
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
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,...
0
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...

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.