Subject | Re: [firebird-support] Re: Problem IBStoredProc |
---|---|
Author | Dmitry Kuzmenko |
Post date | 2012-08-24T19:14:40Z |
Hello, Farshid!
thus it can't return set of rows.
It can execute only procedures, that does not coniain suspend,
because it executes SPs only as
EXECUTE PROCEDURE MYPROC.
If you wrote selective procedure (with suspend inside),
you must call it via
select * from MYPROC
and you also must run it via IBQuery, IBSQL, or IBDataSet (SelectSQL).
p.s. well, you can use IBStoredProc with selective procedure,
but running IBStoredProc.ExecProc will give you only first row
that procedure returns.
--
Dmitry Kuzmenko, www.ib-aid.com
>> > > //----------in delphiIBStoredProc is not a DataSet, while it is inherited from DataSet,
>> > > IBStoredProc1.StoredProcName := 'SP';
>> > > IBStoredProc1.ParamByName('TLek').AsString := 'mb';
>> > > IBStoredProc1.ExecProc;
thus it can't return set of rows.
It can execute only procedures, that does not coniain suspend,
because it executes SPs only as
EXECUTE PROCEDURE MYPROC.
If you wrote selective procedure (with suspend inside),
you must call it via
select * from MYPROC
and you also must run it via IBQuery, IBSQL, or IBDataSet (SelectSQL).
p.s. well, you can use IBStoredProc with selective procedure,
but running IBStoredProc.ExecProc will give you only first row
that procedure returns.
--
Dmitry Kuzmenko, www.ib-aid.com