Forgot SQL Server “SA” password? Don’t Worry

Hi Rama,

Need your help. I forgot the “SA” password and I am unable to access to SQL Server via windows/sql authentication.  Is there any way we can recover the “SA” account?

Hello Vamshi,

Yes, we can as long as you are able to RDP and you are a built in administrator to your windows box.

Thanks Rama, I am an admin to the windows box, I am able to RDP to the server. Could you guide me how to recover the “SA” account?

Yes Vamshi. Sure. Here is the way you can do that. Please follow the below steps to reset the “SA” account.

  • Log on to window box and make sure the built in administrator enabled

1.png

  • Go to SQL Server Configuration Manager and add the -m parameter to run the SQL Server in single user mode as show in below screenshot

2.png

3.png4.png

  • Re-start the SQL Server

5

  • Now logon to SQL Server with builtin administrator as below

6.png

  •  Here you go, you are able to connect to SQL Server. Now change the “SA” account password

7.png

  • After that remove the -m parameter from SQL Server configuration manager and restart the sql server

8.png

  • Connect SQL Server  with  new “SA” password. There you go!

910

 

Hope you enjoyed the post!

Cheers

Ramasankar Molleti

LinkedIn: LinkedIn Profile

Twitter: Twitter

 

 

 

Advertisements

About Ramasankar

My name is Ramasankar Molleti, and I have been working on sql server over 10 years, primarily focusing on Database Administration, Architect , Development and Business intelligence of sql server. I also hold various Microsoft certifications (Microsoft Certified Information Technology Professional, Microsoft Certified Technology Specialist, and Microsoft Certified Solution Associate). Disclaimer The views expressed on this website/blog are mine alone and do not reflect the views of my company. All postings on this blog are provided “AS IS” with no warranties, and confers no rights. The owner of https://sqlram.wordpress.com will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s