If you need to reset the password for the sa user, follow the instructions below.
Before you reset the password, ensure you are logged into Windows as a network Administrator and that the login method is set to Mixed Mode authentication.
To change the login method to Mixed Mode authentication
Right-click on the Start menu and select Run. Alternatively, you can also press the Windows key + R on the keyboard.
In the Open field, type regedit and press Enter on the keyboard.
Navigate to the relevant location for your server instance:
Locate the SQL Server and SQL Server Agent services then right-click on the service and select Restart.
Repeat the above procedure To reset the password again.
To reset the password
Right-click on the Start menu on the Windows Desktop and select Command Prompt (Admin). Alternatively, you can press the Windows key + R and type cmd into the Open field.
In the Command Prompt window, type the following: OSQL -S <ServerName>\MYOBACCT -E -Q "EXEC sp_password NULL, <NewPAssword>, sa where <ServerName> is the name of your SQL Server and <NewPAssword> is the new password for sa.
Example: OSQL -S MYOBSERVER\MYOBACCT -E -Q "EXEC sp_password NULL,Thi$IsMyneWPa$$word, sa