473,507 Members | 6,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2561
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
4434
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
3733
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
15206
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
3183
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
2611
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
1859
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
3193
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
2204
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
1999
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
4951
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
7313
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,...
1
7029
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
7481
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...
0
5619
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,...
1
5039
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...
0
4702
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...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1537
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 ...
0
411
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...

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.