Subject Re: [firebird-support] How to drop stored procedure from another stored procedure ?
Author Milan Babuskov
S?awek Cabaj wrote:
> Let's say I don't know is there in the database such
> procedure as PROC. I'd like to check it and if it is there to drop it.

EXECUTE BLOCK AS
BEGIN
if (exists(select 1
from RDB$PROCEDURES where RDB$PROCEDURE_NAME = 'PROC'))
then
EXECUTE STATEMENT 'drop procedure PROC';
END

--
Milan Babuskov
http://fbexport.sourceforge.net