Subject | Re: [IBO] Error executing sp |
---|---|
Author | constantijnw |
Post date | 2004-06-05T15:14:21Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
views at all!
IB_STORECPROC and IBOQUERY.
I also tested with IBX's IBSTOREDPROC and its MONITOR didn't show any
error.
> At 09:20 PM 5/06/2004 +1000, you wrote:should return
>
> >Do you mean it retrned no error or no return value? The cursor
> >the value but you now need to use the SELECT syntaxUSER_SESSION_START2(:ACCOUNTNAME,:USERNAME:PASSWRD);
> >SELECT ACCOUNTID FROM
>And he can't say noboby warned him that somebody wouldn't like his
> Alan,
> Your comments are quite misleading. It is *not* necessary to make a SP
> selectable in order to get the return values.
>
views at all!
> The SP as originally written, if called via TIB_DSQL withnot Open.
>
> EXECUTE PROCEDURE USER_SESSION_START2 (:ACCOUNTNAME,:USERNAME,:PASSWRD)
>
> should return the return value (ACCOUNTID) in the Fields array.
>
> I wonder if it is being called correctly.
>
> You must test whether it is prepared, and call the Execute method,
> varDid you see my SP_3 test proc? I have reproduced the error with
> AcctID: integer;
> begin
>
> with MySP do
> begin
> if not IB_Transaction.Started then
> IB_Transaction.StartTransaction;
> if not Prepared then Prepare;
> ParamByName....
> ParamByName....
> ParamByName....
> Execute;
> AcctID := Fields[0].AsInteger;
> end;
> end;
>
> Helen
IB_STORECPROC and IBOQUERY.
I also tested with IBX's IBSTOREDPROC and its MONITOR didn't show any
error.