I installed Microsoft SQL server 2012. I open Microsoft SQL server management and login with Windows Authentication. I don't know default password of "sa". So, I needs to change of it. I follow steps from answer of this question: Unable to change the password of "sa" in SQL Server 2008 but password doesn't change!
For better sense see these screenshots in order:
1. I select logins. After, I select "sa". Then, Select "Properties".
2. As you can see, the length of password is 15 chars.
3. I change it to "1234". (the length of password logically will equal to 4 chars) And then select "OK"
Do you have any idea about this strange problem?
Some Unsuccessful Tries
- I was tried another passwords with complex char likes "@#FGHbnm1234567890"
- I was change mode of authentication with this link Options to Change SQL Server to Mixed Mode Authentication
- I was reinstalled SQL server.
- I was created new user. But password of new user isn't changeable likes "sa"
UPDATE
The first I was say length of password isn't correct. But I know length of password isn't real length for security aspect. I edit step 4 with a better reason for my claim
UPDATE 2
I open logs:
It seems my authentication mode is wrong:
Login failed for user 'sa'. Reason: An attempt to login using SQL authentication failed. Server is configured for Windows authentication only. [CLIENT: ]
But I change authentication mode before:
SQL Server and windows Authentication mode
UPDATE 3
Finally my problem solved!
The reason of my problem is wrong changing authentication mode. The answer of Larnu is a good solution. Also I suggest this link for step by step guide: How To Enable SQL Server Authentication