for Windows users who do not have permission to perform ALTER LOGIN SA enable, the following method can be used to successfully modify the sa password login. 1. With Run asa administrator open a command prompt and enter the net stop MSSQLSERVER, which stops MSSQLSERVER running. 2. At the command prompt, enter the NET START mssqlserver/m, and the SQL Server -boot to single-user mode. 3. Log in to SQL Server with Administrator account -. 4. When SQL Server is already in single-user mode and allows only one user to connect, clicking "New Query" will error "Login failed forUser. Reason:server is inchSingle user mode. One administrator can connect at ThisTime ". 5. Right click on the instance name, click "Disconnect", Close "Object Explorer", then click "New Query" to connect, you can use the command ALTER LOGIN SA enable re-open SA account, alter LOGIN [SA] with Passwor D=n'1234qwer'Change the password. 6. Now close SQL Server, and at the command prompt, enter NET STAR MSSQLSERVER to start SQL Server normally, and you can log in to SQL Server with the SA account. [/quote]
SQL Server modifies the sa password (without permission on Windows login)