ADOtable1.ConnectionString:='Provider=SQLOLEDB.1;Password='+b_password+';'+'Persist Security Info=True;User ID='+user+';'+'Initial Catalog=POS_MORE;Data Source='+ip+';';
type 
adotable1.active:=True;
except
application.Terminate;
exit;
end;

解决方案 »

  1.   

    首先需要确定的是,你的机器装了ado没有。
      

  2.   

    你的数据库服务器有没有打开,你的网络是否通顺,你的连接字符串是否正常。  你的windows是否应该重装,呵呵,都有可能哦。
      

  3.   

    一切正常,我要不重装delphi
    我式了,换个adoconnection也不中。
      

  4.   

    在连接之前一定要确定连接已经关闭
    adoconnection1.connected:=false;
    adoconnection1.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;
    User ID=Admin;Data Source='+filepath+'sofrreg.mdb;
    Mode=Share Deny None;Jet OLEDB:Database Password="";
    Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;
    Jet OLEDB:Global Partial Bulk Ops=2;
    Jet OLEDB:Global Bulk Transactions=1;
    Jet OLEDB:New Database Password="";';
    adoconnection1.Connected:=true;