我也是刚学习,使用
ClientDataset.commandtext:='insert into...';有人告诉我:建议不这样使用使用存储过程比较好,有心得交流:[email protected]

解决方案 »

  1.   

    察看一下Clientdataset的属性,或者用启动SQL Monitor监视一下!
      

  2.   

    可以Edit,可以Delete就是不能Insert,真怪
      

  3.   

    在PostError和ReconcileError事件中写代码捕捉错误代码,看看是什么引起的?
      

  4.   

    procedure TDM.cdsReconcileError(DataSet: TClientDataSet;
      E: EReconcileError; UpdateKind: TUpdateKind;
      var Action: TReconcileAction);
    begin
      inherited;
      showmessage(E.message);
      Action:=raCancel;
    end;这样可以看到出错的信息。我觉得你把中间层的TBaseProvider.UpdateMode
    改为upWhereChanged这个值就好了.