【问题】

连接报错:

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连接

【数据库】SQL Server无法连接127.0.0.1

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

【数据库】SQL Server无法连接127.0.0.1

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

【数据库】SQL Server无法连接127.0.0.1

 

 

 

相关文章:

  • 2021-12-10
  • 2021-08-13
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
猜你喜欢
  • 2022-02-17
  • 2021-05-03
  • 2021-06-29
  • 2021-09-04
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案