What should I do if I forget the SQLServer2000sa password?

Source: Internet
Author: User
Tags mssqlserver
First, log on to the SQL query analyzer using windows authentication, and then EXECsp_passwordNULL, hello. Then, the sa password can be changed to hello. To change the SQL forgot sa password from mixed mode to integrated (Windows) Authentication mode, follow these steps: 1. Stop MSSQLSERVER and all

First, log on to the SQL query analyzer using windows authentication, and then execute EXEC sp_password NULL, 'Hello', 'sa 'to change the sa password to hello. To change the SQL forgot sa password from mixed mode to integrated (Windows) Authentication mode, follow these steps: 1. Stop MSSQLSERVER and all

First, log on to the SQL query analyzer using "windows Authentication", and then execute

EXEC sp_password NULL, 'Hello', 'sa ', you can change the sa password to hello.

SQL forgot sa password modification method

To switch from hybrid mode to integrated (Windows) Authentication mode, follow these steps:

1. To stop MSSQLSERVER and all other related services (such as SQLSERVERAgent), open the service program in "Control Panel.

2. Open the Registry Editor. To open the Registry Editor, click Start and run, and then type "regedt32" (excluding quotation marks)

3. Find one of the following sub-items (depending on whether MSDE is installed as the default MSDE instance or as a named instance ):

HKEY_LOCAL_MACHINESoftwareMicrosoftMSSqlserverMSSqlServer or

HKEY_LOCAL_MACHINESoftwareMicrosoftMicrosoft SQL ServerMSSQLServer

4. In the right pane, double-click the LoginMode subitem.

5. In the Dword Editor dialog box, set the value of this subitem to 1. Make sure that the Hex option is selected, and then click OK.

6. Restart the MSSQLSERVER and SQLSERVERAgent services for the change to take effect.

The above is the SQL Server 2000 sa password introduced to you by The MIIT. I hope it will help you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.