When we maintain the database server, we often need to change the default port number (1433 by default) of the Database Service to ensure security. However, when the client connects to the database server, it is a little troublesome. I thought that when connecting to the Database Service, adding a port number after the IP address can solve the problem, but otherwise, for example, I want to link 192.168.20.47, which is a database server, the port number is changed to 1422, so when we connect, it is like this
However, when a connection is clicked, the connection is always unavailable, indicating that there is a problem or error in this case. How can this problem be solved?
Our server name is 192.168.000047, which must be correct, but what should we do with the port number? There must be a place for us to configure. If we connect to 192.168.20.47, it will automatically connect with port 1422. We looked at some tools in sqlserver and found that there is indeed a Configuration Manager in it,
Open the SQL native Client 10.0 configuration option, which has an "aliases" (alias) option, and may be set here, right-click "new ", you can add aliases, port numbers, protocols, and server names,
I will fill in the information just now, for example, the alias is 192.168.20.47, Prot No: 1422, Protocol: default (most of us are using the TCP/IP protocol), server: 192.168.20.47; then save.
Then I will return to the server connection screen. Enter the server name 192.168.20.47 and enter the user name and password to connect to the server!
Here, we need to note that when I added an alias, 192.168.000047 was added. When I returned to the connection server panel, 192.168.000047 was entered. If
If this alias is not used, for example, "47server", can I connect to the server panel or enter 192.168.47? The answer is no. It indicates that the server alias is entered on the connection server panel. It must be the same as the alias we just created. This is what you should pay attention;
Tag: sqlserver, remote, remote connection to the server, port number changed