本人想在delphi7下用deExpress的SQLStoredProc控件调用db2 的存储过程,但是总是报“operation not support” 的错误。相关代码如下:
procedure ExecStored;
var
  DbConn: TSQLConnection;
  SQLStoredProc:TSQLStoredProc;
begin
  DbConn:= TSQLConnection.create(nil);
  SQLStoredProc:= TSQLConnection.create(nil);
  try
    //初始化dbconn的相关属性配置
    ......
    SQLStoredProc.SQLConnection := DbConn;
    SQLStoredProc.StoredProcName:=存储过程名// 执行到这就会报错
    //参数设置
    Params.Clear;
    Params.CreateParam(ftInteger, 'pBillID', ptInput).AsInteger := iBillID
    ...  
    SQLStoredProc.ExecProc;
  finally
    SQLStoredProc.free;
    DbConn.free;
  end;
end;