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.