http://dev.csdn.net/develop/article/16/16437.shtmstring strcon="Data Source=(local);Initial Catalog=log;user id=yyx;password=111";

解决方案 »

  1.   

    这个还是不行,本机可以,在另外一台机器上就是不行。
    以前也遇到过这个问题,都是直接重装SQL Server 2000,问题迎刃而解!
    但是现在要装到服务器上去,而服务器不能重启,应该有解决方法吧
      

  2.   

    ...要么你把string strcon="Data Source=(local);Initial Catalog=log;user id=yyx;password=111";Data Source=(local);->(local)换成你机器的ip地址再试试!!
      

  3.   

    错误信息:
    SQL Server does not exist or access denied
    at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&isIntransaction)是不是因为我没有在那太机器上装.net啊,我装了dotnetframework,是不是还要装其它的支持数据库操作的东东啊???
      

  4.   

    http://support.microsoft.com/default.aspx?kbid=328306可以看下这个
    代码应该没撒问题!
    希望对你有帮助!
      

  5.   

    是不是MDAC的问题??
    不清楚!
      

  6.   

    SQL Server does not exist or access deniedstring strcon="server=机器IP地址;database=log;user id=yyx;password=111";
      

  7.   

    string str ="server=servername;uid=sa;pwd=123;database=Northwind";