SQL server authentication


When I installed sql server before, I used windows authentication. I
found that there is no related tutorial for linking the database.

Using SQL server authentication tutorial

  1. First log in to the database with Windows identity. insert image description here
    2. Open authentication:
    right-click on the server - properties - security - select [sql serve and windows authentication mode] option
    Save OK
    insert image description here

insert image description here
2. Modify the login information and password
under the server - security - login name - select sa - right-click properties -
1) change the password in the general panel
2) select the grant enable option in the status panel
insert image description here
insert image description here
insert image description here

4. Focus on restarting the server

Database - right click - restart - select sql server authentication - bingo
restart the server

windows authenticationServer
=localhost;Initial Catalog=xxx;Trusted_Connection=yes;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325820103&siteId=291194637