接铁请教
为什么batchmove后发现记录不全

解决方案 »

  1.   

    不懂。
    以前我都是另加一个TDataBase、TBatchMove...
      

  2.   

    给你一段中间层的代码:
    procedure TRAppserver.M_Backup;
    begin
      with ADOConnection1 do
      begin
        BeginTrans;
        try
          Rmovebatch.source:=Table1;
          Rmovebatch.destination:=Table2;
          Rmovebatch.execute;
          ……………
          ……………
          CommitTrans;
        except
          RollBackTrans;
          Raise;
        end;
      end;
    end;
      

  3.   

    在客户端就没有table,
    你所谓的中间层是什么意思,这段代码在放在哪?