sqlserver windows authentication can log in, sa login does not go in, error code: 18456

The reason: sa account has not been granted permission to connect to the database engine, logon rights has also been mercilessly deprived.

solution:

After 1) windows log on, find: Security -> login -> sa, then right-click and select Properties.

2) Select General (Enter the new password, cancel the password policy).

3) Select the state (set granted and enabled).

4) Select the Right Properties - Select Security ( SQL Server and windows authentication mode) -> OK

5)  Reboot the server

Guess you like

Origin www.cnblogs.com/1810-zx/p/12102957.html