是用SaveToFile存的 adtg 和 xml 格式。
文件大小不定。

解决方案 »

  1.   

    要使用updatebatch模式,使用adoquery1.updatebatch来更新数据。
      

  2.   

    我的操作如下:放一ADOQuery控件 query;设其属性
    Connection = ADOConnection (好的 连上的)
    AutoCalcFields = false
    CacheSize = 1000
    CursorLocation = clUseClient //默认
    CursorType = ctStatic
    MarshalOptions = moMarshalAll //默认
    Prepared = true
    LockType = ltBatchOptimisticquery->SQL->Text = "select * from bmb";
    query->Open();
    query->LoadFromFile("bmb.adtg"); //adtg格式
    query->UpdateBatch(arAll);
    query->Close();再去 查看 bmb 部门表 结果里面什么都没有。
    用 profile (sql - server) 监视也没发现执行任何的update 和 insert。急 , 急 呀 ,我现在脑子里都是bullshit。
    谁要是解决了 ,送C++ Builder区的50分。
      

  3.   

    LoadFromFile 和 UpdateBatch之间还有--query->LoadFromFile("bmb.adtg"); //adtg格式 以前用SaveToFile 存的。
    query->Edit();
    query->Post();
    --query->UpdateBatch(arAll);
      

  4.   

    C++ Builder区的加了50分,到100分,总分200分了。
    希望各位给个正确答案。