Forgot SQL Server Password

Try running the following commands at the command prompt (assuming your Server name is SQLEXPRESS):

osql -E -S .\SQLEXPRESS
exec sp_password @new='changeme', @loginame="sa"
go
alter login sa enable
go
exit

Once you have completed these steps, try to login with username sa and password changeme.

Leave a Comment