紧急求助asp.net2.0程序连接sqlserver2000数据库出现问题
服务器配置:
windows2003
framework2.0
framework1.1
sqlserver2000出现如下错误:(查看错误网址:http://union.tesu.cn)
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) 

解决方案 »

  1.   

    http://www.cnblogs.com/KissKnife/archive/2006/12/09/587190.html
      

  2.   

    数据库连接字符串 我用 local 和 . 都不行
      

  3.   

    把server先改成你的计算机名字看看行不行
      

  4.   

    你的机器当前的SQL Server默认实例不是什么SQL Server2000,而是2005。使用企业管理器察看一下默认实例是否真的是2005,还是以前装的SQL Server2005没有卸载干净。如果是2005,默认它是不允许远程访问的,需要在系统配置中将端口打开。参考:http://www.google.com/search?hl=zh-CN&newwindow=1&rls=com.microsoft%3Aen-US&q=SQL+server+2005+%E8%BF%9C%E7%A8%8B%E7%AB%AF%E5%8F%A3&lr=
      

  5.   

    如果是本地数据库,那么你在数据库连接串中应该写(local),不要写ip等。
      

  6.   

    还不行,你在VS2005下面这么改
    用connectionstring, <connectionStrings>
        
          <add name="strCon" connectionString="server=servername;database=rfdatabase;uid=sa;pwd=123"
              />
       
      </connectionStrings>读取时代码:string strconn = System.Configuration.ConfigurationManager.ConnectionStrings["strCon"].ConnectionString;
    找到web.config标签<connectionStrings>替换成上面的,然后修改你的数据库链接代码
      

  7.   

    改成上面的webconfig看看行不行