Article ID: 325022 - Last Review: March 22, 2007 - Revision: 5.3 MSDE security and authenticationThis article was previously published under Q325022 On This PageSUMMARY
System administrators and developers must consider security and authentication issues because users who are not authorized can destroy, steal, or otherwise gain access to data. This article gives you an overview of Microsoft Desktop Engine (MSDE) Security and Authentication and some helpful tips about how to make your data more secure. MORE INFORMATIONSecurityTo secure your database, you must understand your users. Users can have many different purposes when they connect to your database. Users can read the data, change the data, delete the data, and insert more data. The first step to secure your database is to decide what activities each user is permitted to perform on the database.Users, groups, and rolesSQL Server and MSDE have Users, Groups, and Roles that you can use to control the level of security on the database. If a particular group of users only have to read the data from the database, you can create a group named OnlyReaders, and then add the users to this group. The users who are members of this group can only read the data; they cannot change the data, whether intentionally or by accident.To learn more about Users, Groups, and Roles, see the SQL Server Books Online. To add Users, Groups, and Roles on an MSDE database, use the OSQL utility. SA account passwordAnother simple step to make your database more secure is to verify that the SA account has a secure password. Many developers and system administrators leave the SA account password blank, which permits anyone to gain access to the database.To change the SA account password on your MSDE database, follow these steps:
325003
(http://support.microsoft.com/kb/325003/
)
How to manage the SQL Server Desktop Engine (MSDE 2000) by using the Osql utility
Security in ASPSecurity in Active Server Pages is as important as security for Windows-based programs. For more information, click the following article number to view the article in the Microsoft Knowledge Base:176377
(http://support.microsoft.com/kb/176377/
)
Accessing SQL Server with Integrated Security from ASP
Security patchesTo maintain security, you not only have to manage users, groups, and roles, but you also have to verify that you have installed the latest patches on your database server. Security patches are available for download for SQL Server and MSDE. Microsoft recommends that you install these patches immediately. For more information, visit the following Microsoft Web site:
Microsoft Security Bulletin MS02-034 http://www.microsoft.com/technet/security/bulletin/MS02-034.mspx (http://www.microsoft.com/technet/security/bulletin/MS02-034.mspx) Note We recommend that you install SQL Server 2000 Service Pack 3 (SP3) or SQL Server 2000 SP4. Service packs include more updates, and Microsoft Security Bulletin MS02-034 is included in the two service packs. For more information about how to obtain SQL Server 2000 SP3 or SQL Server 2000 SP4, click the following article number to view the article in the Microsoft Knowledge Base: 290211
(http://support.microsoft.com/kb/290211/
)
How to obtain the latest SQL Server 2000 service pack
This is a cumulative patch that includes the functionality of all of the patches that have been released previously for SQL Server 2000. Also, this patch fixes the following three newly discovered vulnerabilities that affect SQL Server 2000 and SQL Server Desktop Engine (also known as MSDE 2000). (These vulnerabilities do not affect any previous versions of SQL Server or MSDE.):
SQL Server 2000 also includes the ability to record an unattended install to the Setup.iss file without your having to actually perform an installation. The administrator who sets up the computer running SQL Server can give a password to the installation routine under the following circumstances:
AuthenticationAuthentication is a way for SQL Server and MSDE to check logins to verify that the user is permitted to connect to the server. There are two security modes that SQL Server and MSDE use: Windows Authentication and Mixed Mode.Windows AuthenticationWindows Authentication uses NTLM to connect to MSDE. If you log on as an Administrator to you computer, MSDE tries to authenticate you as an Administrator.Mixed Mode AuthenticationMixed Mode Authentication permits you to log on to MSDE by using Windows Authentication or SQL Server authentication. SQL Server authentication permits you to create users in MSDE. When you develop programs, you include your user ID and your password in the connection string when you connect to MSDE. For more information about Authentication Modes, visit the following Microsoft Web site:
Authentication Modes http://msdn2.microsoft.com/en-us/library/aa905171(SQL.80).aspx (http://msdn2.microsoft.com/en-us/library/aa905171(SQL.80).aspx) Turn on Mixed Mode Authentication during installationDuring installation, you can change the authentication mode that MSDE uses by running the installation with the following command parameter:Note By default, for Windows NT and later, MSDE installs by using Windows Authentication. On computers running Windows 98, MSDE uses SQL authentication. Turn on Mixed Mode Authentication after you install MSDEImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows By default, the value of the LoginMode Windows registry subkey is set to 1 for Windows Authentication. To turn on Mixed Mode authentication after you install MSDE, you must change this value to 2. The location of the LoginMode subkey depends on whether you installed MSDE as the default MSDE instance or as a named instance.
REFERENCES
For more information, visit the following Microsoft Web sites:
Managing Microsoft SQL Server Security with Microsoft Access http://msdn2.microsoft.com/en-us/library/aa140013(office.10).aspx (http://msdn2.microsoft.com/en-us/library/aa140013(office.10).aspx)
SQL Server 2000 Security White Paper
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sp3sec00.mspx (http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sp3sec00.mspx) 259710
(http://support.microsoft.com/kb/259710/
)
PRB: SQL Server Agent Fails to start on Windows 9x when you change the SA password
319930
(http://support.microsoft.com/kb/319930/
)
How to connect to Microsoft Desktop Engine
313418
(http://support.microsoft.com/kb/313418/
)
PRB: Unsecured SQL Server with blank (NULL) SA password leaves vulnerability to a worm
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
248683
(http://support.microsoft.com/kb/248683/
)
Microsoft Data Engine Security recommendations for ISVs
321698
(http://support.microsoft.com/kb/321698/
)
Cannot connect to MSDE 2000 by using ADO.NET with SQL Authentication
APPLIES TO
| Article Translations
|

Back to the top
