我的数据库是SQL2000 uid和pwd  是不是用户名和密码啊 我用uid=sa;pwd=123怎么也连接不上 提示未与信任的SQL连接相关联
这是怎么了 大家帮忙啊

解决方案 »

  1.   

    用这个连接串试试看
    "server=(local);database=NorthWind;uid=sa;pwd=1234;"
      

  2.   

    "server=./;database=NorthWind;uid=sa;pwd=123;"
    try this
      

  3.   

    2003
    Persist Security Info=False;Data Source=你的数据库名;Integrated Security=false;Initial Catalog=Northwind;User ID=sa;Password=1232005
    Provider=SQLOLEDB;Persist Security Info=False;Data Source=你的数据库名;Integrated Security=false;Initial Catalog=Northwind;User ID=sa;Password=123
      

  4.   

    Data Source=(local);uid=sa;pwd=123;Initial Catalog=数据库名字;
      

  5.   

    "server=.;database=pubs;uid=sa;pwd=;"
    默认密码一般都是空的,如果你的密码是123,那么pwd=123就可以了
      

  6.   

    在企业管理器中查看Sqlserver的安全性
    身份验证 是否是 混合验证模式
      

  7.   

    哦 这样是因为你数据可服务器管理不对打开SQL SERVER企业管理器 在左边的树状图中 对你所需要的数据库服务器点右键 在右键菜单中选择"编辑SQL SERVER注册属性"->选择使用SQL SERVER验证;下面的你自己看提示肯定能搞定了