How to change "sa" password in SQL server management studio 2014
Before going ahead, I would like to share some thing which you might have also known earlier.
There are two modes of connecting to SQL server in SQL server management studio. So if you are unable to authenticate using SQL server authentication, here's the way to change the password of your "sa" account. I have provided two solutions.
** Server Name will be your computer's name.
2. Once you successfully log in using Windows authentication, follow the steps as shown in figure below.
There are two modes of connecting to SQL server in SQL server management studio. So if you are unable to authenticate using SQL server authentication, here's the way to change the password of your "sa" account. I have provided two solutions.
Solution A:
1. Login using Windows authentication.** Server Name will be your computer's name.
| Windows authentication |
Step 1: Expand "Security" => "Login" and look for "sa"
Step 2: Right click on "sa" and select "Properties".
Step 3: In the dialog box, make sure you check the option "Enforce password expiration". Click OK.
3. Now try to login again using SQL server authentication. It will ask you for a new password.
note down your password this time somewhere so that you won't lose it again. This won't work every time.
Solution B:
Create a new "sa" account by going to Security => Logins. Right click on Logins and select "New Login".
These are some "luck by chance" or "hit and trial" methods as there is no practical mechanism to change your "sa" password.
Hope this helps. Happy querying. :)
Comments
Post a Comment