Subject Re: [ib-support] ALTER INDEX in a Stored Procedure
Author Martijn Tonies
Hi Robert,


> I can't seem to ALTER INDEX or SET STATISTICS in a stored procedure. Am
> I missing anything? Thanks!

Both are DDL commands. Not possible in a stored procedure.

Unless - if you're using Fb 1.5, you can use:

EXECUTE STATEMENT 'ALTER INDEX name ... ';


With regards,

Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com