Additional SQL Server features and topics not covered by specific categories
What actually worked is the following:
- Stop all running SQL services in Configuration Manager.
- Open CMD prompt as Administrator.
- Go to the directory of the SQL Binn folder. Follow the sequence below. I used my directory path in this example. cd F:\MSSQL\MSSQL13.MSSQLSERVER\MSSQL\Binn g: sqlservr.exe -m"SQLCMD"
- The above will place SQL server in single user mode. Then in another CMD prompt as Administrator, run: sqlcmd -S localhost
- The above should connect fine. Once you see > it means you're connected. Then type: ALTER LOGIN sa WITH PASSWORD = 'YourNewPassword' -- Press enter
- Type 'GO' -- Press enter
- Type 'EXIT' -- Press enter
- Press CTRL and C in the first CMD prompt Window that launched SQL exe in single user mode. It will prompt you to press Y or N to stop the service.
- Restart all SQL services.
- Try to login to SQL Management studio using the SA password you defined.