TBatchMove有一系列属性,设定源表(ttable或tquery),目标表(ttable或tquery),mode属性就成了,每一次只能完成一个表的批量导入或导出,因此你还需要使用session.GetTableNames函数得到数据库中表的列表.遍历一遍

解决方案 »

  1.   

    设好dest(ttable,tquery)和source(ttable,tquery)属性后执行tbatchmove1.execute就行。这是最简单做法。
      

  2.   

    设好dest(table,query)和source(table,query)以及Mode属性(batCopy或其他方式),然后batchmove1.execute;注意数据库属性设置,如果Mode属性为batAppendUpdate或batUpdate,数据库要指定索引.并事先已经存在DEST库.
      

  3.   

    用query能在batchmove的dest中设置吗
      

  4.   

    一般情况下,batchmove的dest用table,而batchmove的sour用Query
      

  5.   

    对于DBF,最简单的备份方法是Copy
      

  6.   

    怎么copy法?我很菜,来个菜(例子)吧
      

  7.   

    我也想知道答案,特别是如何把服务器上的表copy到本地来,如果你知道了请给我Emai:[email protected],谢谢。
      

  8.   

    WINAPI函数:
    function CopyFile(lpExistingFileName, lpNewFileName: PChar; bFailIfExists: BOOL): BOOL; 
    定位所对应的所有DBF,使用上述函数拷贝到另一个地方