Article ID: 321698 - Last Review: April 28, 2007 - Revision: 3.8 You cannot connect to MSDE 2000 by using ADO.NET with SQL Server Authentication
This article was previously published under Q321698 On This PageSYMPTOMS If you try to open a SqlConnection object to a new installation of Microsoft SQL Server 2000 Data
Engine (MSDE 2000) under the following conditions, a SqlException exception may
by thrown:
An unhandled exception of type
'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. Login failed for user 'sa'. Reason: Not associated with
a trusted SQL Server connection. CAUSE The default authentication mode for MSDE 2000 is Windows
Authentication. MSDE 2000 installs with a built-in system administrator (SA)
user account. However, because SQL Server Authentication is disabled by
default, you cannot access the built-in account after a typical installation.
RESOLUTION To enable SQL Authentication, use one of the following
methods:
285097
(http://support.microsoft.com/kb/285097/
)
How to change the default login authentication mode to SQL while installing SQL Server 2000 Desktop Engine by using Windows Installer
Note When you change the default login authentication mode from
Windows NT authentication to SQL authentication, we recommend that you change
the sa password to a strong password.For more information about how to change the SQL Server sa password, click the following article number to view the article in the Microsoft Knowledge Base: 322336
(http://support.microsoft.com/kb/322336/
)
How to verify and change the system administrator password in MSDE or SQL Server 2005 Express Edition
STATUSThis
behavior is by design. MORE INFORMATION If Microsoft SQL Server is installed on the same network as
MSDE 2000, and if your network is using an NT Domain, you may be able to use
the SQL Server Enterprise Manager utility to connect to your instance of MSDE
2000 and to enable Mixed Mode Authentication. By disabling the built-in user account with a blank password, MSDE 2000 is kept more secure after a default installation. If you enable SQL Server Authentication, it is crucial to the security of your system that you immediately create a password for the SA account. To do this, you can use the sp_password stored procedure in the osql command-line utility that is installed with MSDE 2000. For more information, see the "References" section of this article. Steps to reproduce the behavior
REFERENCES
For more information about connecting to Microsoft Desktop Engine, click the
following article number to view the article in the Microsoft Knowledge Base: 319930
(http://support.microsoft.com/kb/319930/
)
How to connect to an instance of SQL Server Desktop Edition or of SQL Server 2005 Express Edition
For more information about using Windows Installer if you are
customizing setup for SQL Server 2000 Desktop Engine, click the following
article number to view the article in the Microsoft Knowledge Base: 227091
(http://support.microsoft.com/kb/227091/
)
Command-line switches for the Microsoft Windows Installer Tool
For more information,
click the following article number to view the article in the Microsoft
Knowledge Base: 325022
(http://support.microsoft.com/kb/325022/
)
MSDE security and authentication
For more information, visit the following Microsoft
Web sites:
SQL Server Enterprise Manager http://msdn2.microsoft.com/en-us/library/aa174466.aspx (http://msdn2.microsoft.com/en-us/library/aa174466.aspx) How to set up Mixed Mode security http://msdn2.microsoft.com/en-us/library/aa215470.aspx (http://msdn2.microsoft.com/en-us/library/aa215470.aspx) sp_password http://msdn2.microsoft.com/en-us/library/aa238870.aspx (http://msdn2.microsoft.com/en-us/library/aa238870.aspx) Using the osql utility http://msdn2.microsoft.com/en-us/library/aa213090.aspx (http://msdn2.microsoft.com/en-us/library/aa213090.aspx) SQL Server 2000 Desktop Engine (MSDE 2000) http://msdn2.microsoft.com/en-us/sql/aa336301.aspx (http://msdn2.microsoft.com/en-us/sql/aa336301.aspx) Integrating MSDE 2000 with your Applications http://www.microsoft.com/sql/prodinfo/previousversions/msde/MSDEintegration.mspx (http://www.microsoft.com/sql/prodinfo/previousversions/msde/MSDEintegration.mspx) APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
