should be:ClientDataSet1.commandtext:='delete from xspd where id="XC-CD-020520-1001"';

解决方案 »

  1.   

    你后台用的是什么连接?如果是BDE,将TDATABASE的HandleShared属性设为True。
    另外,这个SQL不太标准,应该这样:
    ClientDataSet1.commandtext:='delete from xspd where id=''XC-CD-020520-1001''';
      

  2.   

    DataSetProvider的Option中的poAllowCommandText
      

  3.   

    agree with mingyeh.
    you should set datasetprovider.option.poallowcommand:=true; on the appserver
      

  4.   

    谢谢大家,AllowCommandText := True;
             我已经有设置了,还是会这样