What to do with the SQL Server Miss sa password forgot

Source: Internet
Author: User
Tags mssqlserver

The first is to log in to SQL Query Analyzer as Windows Authentication, and then execute

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

SQL forgot sa password modification method

To switch from mixed 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 Registry Editor. To open Registry Editor, click Start and Run, and then type: "Regedt32" (excluding quotes)

3. Locate one of the following two subkeys (depending on whether MSDE was installed as the default MSDE instance or installed as a named instance):

Hkey_local_machinesoftwaremicrosoftmssqlservermssqlserver or

Hkey_local_machinesoftwaremicrosoftmicrosoft SQL Servermssqlserver

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

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

6. Restart the MSSQLServer and SQLServerAgent services for the changes to take effect.

The above is the three network for you to introduce the SQL Server the sa password forgot, I hope to help you.

Related Article

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.