【问题】
连接报错:
An exception of type System.Data.SqlClient.SqlException was thrown.
Additional exception information: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible
【解决办法】
1、打开sqlserver服务管理器,开启TCP/IP连接

2、设置TCP/IP中属性的"IP ALL"的端口为1433

3、重启SQL服务就可以用127.0.0.1登录上了

本文详细介绍了当遇到SQL Server连接失败的问题时,如何通过开启TCP/IP连接、设置正确的端口号并重启服务来解决。适用于那些在尝试连接到SQL Server实例时遇到网络相关或实例特定错误的读者。
4570

被折叠的 条评论
为什么被折叠?



