It is often reported that the SQL Server client cannot be connected. This type of problem is summarized as follows: 1. The SQLServer instance (service) does not start to open "SQLServer Configuration Manager" (or "service" in "Administrative Tools ").
It is often reported that the SQL Server client cannot be connected. This type of problem is summarized as follows: 1. The SQLServer instance (service) does not start to open "SQLServer Configuration Manager" (or "service" in "Administrative Tools ").
It is often reported that the SQL Server client cannot be connected. These problems are summarized as follows:
1. SQL Server instance (service) not started
Open "SQL Server Configuration Manager" (or "service" in "Administrative Tools") and check the corresponding instance (service) whether the status is "running" (or "started "). If the instance is not started (or even the client uses the wrong host name and Instance name during connection), the client certainly cannot connect to the SQL Server database.
2. The network communication protocol is not enabled
If the client uses the network protocol to connect to SQL Server, the corresponding network protocol must be enabled for the SQL Server instance (service. Generally, there may be two situations:
1. It is found that access is allowed on the SQL Server machine, but not on the client. This is because, from SQL Server 2005, Shared Memory (which can be understood as direct access to Memory) is used by default during local access, and Shared Memory cannot be used by remote clients.
2. The network configuration is modified and the TCP/IP protocol is enabled. However, the SQL Server instance (service) is not restarted and does not take effect.
Iii. TCP/IP Port Configuration
For the TCP/IP protocol, pay attention to the port configuration.
1. Whether to "listen all"
For example, if "all listeners" on the "protocol" tab is "yes", all NICs on the local machine use the same port.
If "All listener" is set to "no", each Nic of this server can be configured with "TCP port" and "enabled" independently ".
2. Dynamic Port
If "TCP dynamic port" is set to 0, dynamic port is used.
Because the dynamic port may change every time you enable the SQL Server instance (service), the client will automatically query the UDP port 1434 of this Server during access and ask the corresponding SQL Server instance (service) the current port. The service corresponding to UDP 1434 is the SQL Server Browser, which is responsible for returning the TCP port corresponding to the SQL Server instance (service) It queries to the client.
Iv. Firewall
Because Windows 2008 and later versions enhance security, the firewall port is not automatically opened when SQL Server is installed.
For more information about firewall configuration, see "3. open ports for SQL Server ".
5. incorrect account and password
1. access permission issues
An account used by the client does not have the permission to access SQL Server.
2. The account is disabled.
3. log on to the SQL account
If you set the Authentication Mode to "mixed mode" when installing SQL Server, you can allow SQL Server accounts; otherwise, only Windows accounts are allowed.
After the installation is complete, you can modify the Authentication mode through SQL Server Management Studio. After modification, the SQL Server instance (service) needs to be restarted to take effect.
This article is from the "MSSQL we have Chased Together" blog and is not reposted!