Recently, when I want to connect another computer to my database in the LAN, the following error always occurs:
Title: connect to the server
------------------------------
Cannot connect to sjq-PC.
------------------------------
Other information:
Network-related or instance-specific errors occur when you establish a connection with SQL Server. The server is not found or cannot be accessed. Verify that the Instance name is correct and SQL server is configured to allow remote connection. (Provider: named pipeline providesProgram, Error: 40-the connection to SQL Server cannot be opened. (Microsoft SQL Server, error: 1326)
Click: http://go.microsoft.com/fwlink? For help information? Prodname = Microsoft + SQL + server & evtsrc = MSSQLServer & evtid = 1326 & linkid = 20476
The headache is that ping is successful, telnet port 1433 is normal, SQL server is configured to allow remote connection, and SQL server configuration management tool also sets TCP/IP to enable, even the firewall cannot be connected. I have collected a lot of information on the Internet, saying that database versions do not match... Finally, the solution is simple and cannot be simple... Set port 1433 in the firewall to allow connections.
Setting ports in Windows 7 firewall is different from setting ports in XP (XP may be simpler). Open firewall settings in Windows 7 control panel and select "Advanced Settings" in the list on the left ", create a new rule for the inbound rule and select a port for the rule type. The rest is simple...