1. Start the command-line interface, log in to the SQL Server database as the sa user (the password is password), and view the computer name.
osql -Usa –Ppasswordsp_password null, 'New password'goexit
2. When the password is changed, run the following command to log in to the SQL Server database:
If the login succeeds, the password is changed successfully.
osql -Usa –PNew password