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
;
不知是何原因
程序中连接数据库代码
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
;
不知是何原因
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货