SQL Server sets sa user login

1. Open the database management tool and log in using Windows first. Windows can only log in locally, so remote clients cannot log in.
Insert image description here
Insert image description here
2. Open Security - Login in turn. We can see that the system has built-in sa user, but it is disabled. 3. Right-
Insert image description here
Insert image description here
click the sa user and select Properties. In the properties interface, set password in "General" and in "Status" Set login to open.
Insert image description here
Insert image description here
Insert image description here
4. Right-click the database connection and select properties. The default is windows mode in security. We changed it to sa and windows mode. The prompt will take effect after restarting.
Insert image description here
Insert image description here
Insert image description here
We restart the database service.
Insert image description here
After restarting, log in with sa. Log in success

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_42182034/article/details/109066268