An error has occurred while establishing a connection to the server.  When connecting to sql Server 2005, this failure may be caused by the fact that under the default settings sql Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to sql Server)
用ASP写的程序  数据库连接时出现的异常   有遇到过的没  ?    注意   是error :40 -
 谢谢了

解决方案 »

  1.   

     忘记说了  我这是在局域网内远程连接数据库时发生的异常
      第一 :我确定数据库连接字符串没有任何问题 
      第二 :我的防火墙没有开,所以不存在组织sql server端口的问题
      第三 :我已经允许远程连接
      第四 :sql server 数据库各项服务已开启
         所以我现在想问的是  除了这些还有什么能导致我的程序出现现在这个异常