When I try to connect to a server via Microsoft SQL Server Management Studio using SQL Server Authentication with the server domain name in the server name field, I get an error (Error:18456).
To resolve this error and connect via the server domain name, and do the following steps:
1- 1- I switch the authentication to Windows Authentication and replace the domain name with the sever (machine) name that can be accessed from another machine within the same network, this connects me to the server properly.
2- 2- I change the password of the system administrator account (sa) and set it as the old one, for example if the old one is 123, I change it to 123, and apply these changes.
3- 3- After changing the sa password, I can connect to the server using the domain name with no errors.
This is better illustrated with the screenshots below
My problem is: After performing these steps, the error is resolved temporarily and after a certain period (almost 2 hours) the 18456-error appears again, and I have to repeat the same procedure!
What might be the issue here?
Any help is appreciated,