Subject Re: [firebird-support] Dynamic stored procedure?
Author Helen Borrie
At 02:44 AM 8/03/2006, you wrote:
>Hi everyone
>
>Is it possible to pass variables into a stored procedure that can be
>used as the names of fields or tables, so that the same stored
>procedure can effectively be used on different tables?

Yes, it's possible, as long as you are using Fb 1.5 or higher.

You can't pass database objects as variables: but you may pass the
object identifier as a string and morph it into another string to be
passed to an EXECUTE STATEMENT statement.


>Maybe it is possible to put together sql strings in a stored procedure
>that can then somehow be executed in the procedure itself?

Read the documentation in the Fb 1.5 release notes. *DO NOT USE for DDL*

./heLen