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
;
不知是何原因