A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

http://stackoverflow.com/questions/1391503/a-network-related-or-instance-specific-error-occurred-while-establishing-a-conne

可能是端口问题,需要打开TCP 1433 / UDP 1434端口

http://www.cnblogs.com/humin/archive/2011/10/27/2227136.html

I've resolved the issue. It was due to the SQL browser service.

Solution to such problem is one among below -

  • Check the spelling of the SQL Server instance name that is specified in the connection string.

  • Use the SQL Server Surface Area Configuration tool to enable SQL Server to accept remote connections over the TCP or named pipes protocols. For more information about the SQL Server Surface Area Configuration Tool, see Surface Area Configuration for Services and Connections.

  • Make sure that you have configured the firewall on the server instance of SQL Server to open ports for SQL Server and the SQL Server Browser port (UDP 1434).

  • Make sure that the SQL Server Browser service is started on the server.

最新文章

  1. session的常用方法。
  2. attrs 中的 uid
  3. add user
  4. 如何判断一个Div是否可视区域,判断div是否可见
  5. Python常用网页字符串处理技巧
  6. [MySQL复制异常]'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'
  7. win7 安装Oracle 10G,11G
  8. jQuery插入节点的方法
  9. 空指针错误 java.lang.NullPointerException
  10. JavaScript对象原型写法区别
  11. lxml etree的一个问题
  12. git 学习笔记(常用命令)
  13. Swift对象实例方法名混淆的解决
  14. JSTL varStatus属性
  15. 在IE中下载Office2007文件时在对话框中下载文件变成ZIP文件的问题
  16. Javascript URI 解析介绍
  17. linux文件打包并发送到其他服务器
  18. NIO完成网络通信(一)
  19. Class file collision
  20. (转)Cognos的下载地址分享

热门文章

  1. java中集合的使用
  2. poj 3280 Cheapest Palindrome
  3. js调试--查找dom对象绑定的函数
  4. Java集合---Array类源码解析
  5. 详解ASP.NET MVC的请求生命周期
  6. 将一个Asp.Net网站改为MVC
  7. embed标签
  8. 数论 - Vanya and Computer Game
  9. css position的使用
  10. 基于FS4412的DS18B20温度采集编程实现(1-时序分析)