SQL Sever 2014 uses sql sever authentication to log in

The difference between sql sever authentication and Windows authentication

  1. Both Windows authentication and SQL authentication are a type of database authentication, and authentication is used to identify the identity of the operator of the data.
  2. Both of them need to be granted permissions in the SQL Manager before they can operate within the scope of the permissions.
  3. Windows authentication is more secure than mixed mode. When using this connection mode, sql does not judge the sa password, but only performs authentication based on the user's windows permissions. We call it "trusted connection", but it will be affected by remote connections. Cannot log in due to NTML authentication.
  4. When a remote user accesses it because it has not passed the windows authentication, the sql server authentication is performed (users using sa can also log in to sql) to establish a "untrusted connection" so that the remote user can also log in.

How to log in with sql sever authentication

  1. Use Windows authentication to log in to sql sever
    Insert picture description here
  2. After logging in, we can see the "Object Explorer" on the left and find the "Login name sa" in the "Security" below. Right-click "sa" to open the "Login Properties" page, and click "General", Perform password and confirm password operations, then uncheck "Enforce password policy" and click "Confirm".Insert picture description here
  3. Change login properties-two buttons under status:Insert picture description here
  4. Open our configuration manager,
    Insert picture description hereselect the protocol under the network configuration, and change the status to "enabled"Insert picture description here
  5. As shown in the figure: open the SQL Sever service to see this nameInsert picture description here
  6. Right-click the name and click "Properties", change the built-in account, and click "OK". It succeeded! (This method was seen by a big boss, no one else has written about this method.)
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44690047/article/details/109426555