How to change the default login authentication mode to SQL while installing SQL Server 2000 Desktop Engine by using Windows Installer

Article translations Article translations
Article ID: 285097
Expand all | Collapse all

On This Page

Summary

When using SQL Server 2000 Desktop Engine Windows Installer Merge Modules, an option named SECURITYMODE can be used to change the default login authentication mode from Windows NT authentication to SQL authentication.

More information

The authentication mode can also be changed at the time of the installation by using the following command-line setup parameter for SQL Server 2000 Desktop Engine:
SECURITYMODE=SQL
				
For more information, refer to the "3.1.4 Desktop Engine Setup Parameters" section in the Readme.txt file for SQL Server 2000 Desktop Engine installation.

By default, SQL Server 2000 installation sets the login authentication to Windows authentication mode. This can be easily changed after the install by connecting to the server by using any installation of SQL Server Enterprise Manager (SEM). For more information regarding changing authentication mode by using SEM, refer to the "Authentication" topic in SQL Server Books On-Line.

Another way to change the security mode after installation is to stop SQL Server and set the appropriate registry key for your installation:

Default instance:
HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode
Named instance:
HKLM\Software\Microsoft\Microsoft SQL Server\Instance Name\MSSQLServer\LoginMode
to 0 or 2 for mixed-mode or 1 for integrated. (Integrated is the default setup for the SQL Server 2000 Data Engine.)

Note The 0 and 2 values have the same functionality. They both set the security to mixed-mode.

Important 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 How to back up and restore the registry in Windows

To set this key to mixed-mode, follow these steps:
  1. Stop SQL Server and all related services, such as SQLAgent, from the Services control panel.
  2. Click Start, click Run, type regedt32, and then click OK.
  3. Find the HKEY_LOCAL_MACHINE window on the local computer.
  4. Navigate to the following registry key for the default instance:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSSqlserver\MSSqlServer
  5. Navigate to the following registry key for a named instance:
    HKLM\Software\Microsoft\Microsoft SQL Server\Instance Name\MSSQLServer\LoginMode
  6. On the right-hand pane, find the value LoginMode and double-click it.
  7. In the DWORD Editor window, set the value to 0 or 2. Also, make sure that the Hex radio button is selected.
  8. Click OK.
Restart SQL Server and SQL Server Agent services for this change to take effect.

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 How to verify and change the system administrator password in MSDE or SQL Server 2005 Express Edition

REFERENCES

For more information about using Windows Installer if you are customizing set up for SQL Server 2000 Desktop Engine, click the following article numbers to view the articles in the Microsoft Knowledge Base:
227091 Command-line switches for the Windows Installer Tool
280352 How to install SQL Server CE from the command line and generate a log file

Properties

Article ID: 285097 - Last Review: June 19, 2014 - Revision: 4.0
Keywords: 
kbinfo KB285097
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com