Subject | Re: StoredProcedure excution |
---|---|
Author | Adam |
Post date | 2005-12-20T22:53:02Z |
--- In firebird-support@yahoogroups.com, "majstoru" <majstoru@y...> wrote:
You have a table containing SQL statements. You have a stored
procedure that you want to get these statements and run them?
Apart from the security problems this might introduce, it can be done
using the "execute statement" command.
....
FOR SELECT QRY FROM SPQRY INTO :STMT DO
BEGIN
EXECUTE STATEMENT :STMT;
END
....
Although I imagine you may have problems in the long run because
dependencies will not be obvious and something might break.
Adam
>thinks = query?
> Hi,
>
> I have Firebird like bakcend dabatabse in my n-tier application which
> is have a 10-15 thin clients connected to server (this is scenario). I
> have some thinks in application that is defined in table (fex:
> sysoperate) in the database! This thinks are set of few SQL statments!
> I would lie to import all of theese SQL statments in to the
> StoredProcedure and execute it like SP! It mean when I change SQL
> statment, SP fetch new statments and execute then on new call of SP by
> client.
>
> Thanks for ALL!
>
You have a table containing SQL statements. You have a stored
procedure that you want to get these statements and run them?
Apart from the security problems this might introduce, it can be done
using the "execute statement" command.
....
FOR SELECT QRY FROM SPQRY INTO :STMT DO
BEGIN
EXECUTE STATEMENT :STMT;
END
....
Although I imagine you may have problems in the long run because
dependencies will not be obvious and something might break.
Adam