试试把SQL的验证方式改为sql and windows
企业管理器-》服务器-》右健-》属性-》安全性

解决方案 »

  1.   

    你在下边加上
    .CommandType = adCmdText
    .RecordSource = "SQL"
    .Refresh
    看看
      

  2.   

    你在下边加上
    .CommandType = adCmdText
    .RecordSource = "SQL"
    .Refresh
    看看
      

  3.   

    是不是修改了操作系统的administrator的密码?
      

  4.   

    应该是你的登陆验证方式为"仅windows"
    如果你不想改验证方式,就用下面的连接字符串来连接:Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=数据库名;Data Source=SQL服务器名
      

  5.   

    改为sql and windows 混合模式认证试试.
      

  6.   

    DSNCONNECTION = "Provider=SQLOLEDB;User ID=" & .UID     & ";Password=" & .Pwd & ";" _
    & "Initial Catalog=" & .DataBase & ";Data Source=" & .Server
    .UID     前为什么有.?不需要 .。