我现在是Win程序,当SQL Server2000和程序在我的同一部机运行时联接数据库是无问题的,但当程序和SQL Server2000分开在不同的两部机上运行时,联接就会出错.我的联接语句如下:
                 server=DANDYYANG;database=PWWarehose;integrated security=sspi出错提示如下 :
         请求System.Data.SqlClient.SqlClientPermission,System.Data,Version=1.0.5000.0,
         Culture=neutral,PublicKeyToken=b77a5c561934e089 类型的权限已失败.请各位帮帮忙如何设置SQL Server2000,谢谢!

解决方案 »

  1.   

    你使用user和pwd来链接,也就是修改你的连接串
    参考:
    http://www.csdn.net/Develop/read_article.asp?id=16437
      

  2.   

    Standard Security:"Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;" 
       - or -
    "Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False" 
       (both connection strings produces the same result)see also : http://www.connectionstrings.com/
      

  3.   

    在客户端重装一下Mdac试试,因为安装SQL Server2000会自动安装Mdac的,
      

  4.   

    http://www.cxdb.cn/computer/jiao/200511/computer_62528.html
    http://dev.csdn.net/develop/article/16/16437.shtm
      

  5.   

    用   server=DANDYYANG; uid=sa; pwd = aaa ; database=PWWarehose  试试呢
      

  6.   

    看下面這個,想要什麽都有http://www.connectionstrings.com/
      

  7.   

    各位兄弟,
    我试过了用"Data Source=DANDYYANG;Initial Catalog=pubs;User Id=sa;Password=pw"这条连接语句和新建用户都不行,还是同样当程序和SQL Server2000在同一部机就正常,如果分开两部机就会不成功.是否是我的SQL Server2000权限设置有问题呢?
      

  8.   

    是不是你的SQLSERVER的那台機器的SP2防火墻阻止了訪問?