小弟新学dephi
请问有没有象vb那么直接调用存储过程的哦
如:
rs.open "存储过程 参数.."不是先调存储过程名
再调参数的

解决方案 »

  1.   

    ...
    SQL.Add('exec 存储过程 参数..');
    ExecSQL;
    ...
      

  2.   

    同意,不过如果不返回数据集,应该用execsql代替open
      

  3.   

    如果返回记录集,就用open
    with query1 do
    begin
    ...
    SQL.Add('exec 存储过程 参数..');
    open;
    ...
    end;
      

  4.   

    用tadostoreproc 控件怎么实现呀,
    可以吗?
      

  5.   

    先设置ADOStoredProc1的属性
    connectionstring
    procedurename
    ParametersADOStoredProc1.Parameters.ParamByName('参数').value := ...;
    ...
    ADOStoredProc1.Open;   (返回数据集)