Getting value from stored FB procedure
Posted: Tue 25 Sep 2012 11:21
Hi,
I have simple sp in FB that returns only one value. There is no suspend command in sp.
I'm using last version of Unidac controls.
Now I'm trying to get that returned value in Delphi app with TUniQuery.
In code I do:
Returned value is not in FieldByName collection, since this is execute statement, but it should be in ParamByName collection.
I also tried with
But that also doesn't work.
I don't want to use TUniStoredProc component.
Any suggestions?
Regards, Tone
I have simple sp in FB that returns only one value. There is no suspend command in sp.
I'm using last version of Unidac controls.
Now I'm trying to get that returned value in Delphi app with TUniQuery.
In code I do:
Code: Select all
q.Clear;
q.SQL.Add('EXECUTE PROCEDURE TESTME(1)');
q.ExecSql;
I also tried with
Code: Select all
q.Clear;
q.SQL.Add('EXECUTE PROCEDURE TESTME(1) RETURNING_VALUE :RET');
q.Prepare;
q.ExecSql;
I don't want to use TUniStoredProc component.
Any suggestions?
Regards, Tone