delphi2005、sqlserver2000开发的程序在win7下运行出现sa登陆失败,该如何处理

delphi2005、sqlserver2000开发的程序在win7下运行出现sa登陆失败
delphi、sqlserver2000开发的程序在win7下运行出现sa登陆失败,数据库配置为身份验证sqlserver和windows
程序中连接数据库代码
 if AWin32Version>5.1 then
  ADOConnection1.ConnectionString:='Provider='+Providerstr+';User ID='+UserIDstr+';Persist Security Info=True;Password='+Passwordstr+';Data Source='+DataSourceStr+';Initial Catalog='+DatabaseNamestr

  else ADOConnection1.ConnectionString:='Provider='+Providerstr+';User ID='+UserIDstr+';Password='+Passwordstr+';Data Source='+DataSourceStr+';Initial Catalog='+DatabaseNamestr
;
不知是何原因

------解决方案--------------------
直接用ADOCONNECTION,在里面设置联接,然后测试联接试试