Remote connection to SQL server

Found the configuration manager for SQL server, can't find it? ? open    click to open link

Under the SQL server network configuration, find the protocol of MSSQLSERVER -> right-click on TCP/IP, find IP3, enter the IP address of your own machine (I don't know where to find it), the bottom one), the TCP port is 1433, which has been enabled If yes, click  Apply -> OK


If you have opened the database before, remember to close it first, and then open it. Anyway, just restart it. Enter the ip of the local machine in the server name. I am logged in by the sa user here, and Windows is also possible after testing!


The picture below appears,,,, congratulations! ! !



Ps:  Some people log in with the sa user and find that there is always an error, that is when we connect with the sa user without pre-configured

Set up, at this time, we need to use the Windows authentication method to connect first, go in and configure it.


After connecting via Windows authentication, right-click the server that appears in your interface


Properties -> Connection, click the place as shown in the figure



Click on Security -> Click on the place as shown -> OK



Expand the directory of your server, right click on security -> right click on sa -> select the place as shown



If we are lucky, it should be no problem, 233333. If not. . . I'm sorry,,, I only encountered this situation at present,,, If there are other reasons, I will continue to talk about it later.


How to check the IP of this machine?

Win+R enter cmd, after running, enter ipconfig, press Enter, the IPV4 address of the picture is our IP address.

ps: This is the IP address of the local area network. Some people directly check the Internet and find that it is different. It is the IP of the external network.



Guess you like

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