用的是SQL server2000
使用AdoQuery控件连接时用sa连接成功
编写一段代码测试失败
procedure TForm1.Button1Click(Sender: TObject);
begin
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('delete from 用户清单  where 姓名='''+edit1.text+'''');
adoquery1.ExecSQL;
end;end.
提示project project1.exe raised exception class EOleException with message  '用户' 'sa'登录失败。
process stopped. use step or run to continue.
怀疑是sa的问题新建了一个数据库用户,失败