Subject | Re: Redundant stored procs |
---|---|
Author | Adam |
Post date | 2006-09-01T01:17:03Z |
--- In firebird-support@yahoogroups.com, "Simon Carter"
<mail.lists@...> wrote:
dependencies of a stored procedure, but for your scenario, I imagine a
check on the procedures where no dependency record exists would suffice:
Something like (read: not tested)
select P.RDB$PROCEDURE_NAME
from RDB$PROCEDURES P
where NOT exists
(
SELECT 1
FROM RDB$DEPENDENCIES D
WHERE P.RDB$PROCEDURE_NAME = D.RDB$DEPENDED_ON_NAME
)
Adam
<mail.lists@...> wrote:
>what stored
> Does anybody have a sql script which will allow me to easily see
> procs are not referenced by another stored proc, without having tocheck the
> dependencies for each proc?It might be more useful to write a script to recursively trace the
dependencies of a stored procedure, but for your scenario, I imagine a
check on the procedures where no dependency record exists would suffice:
Something like (read: not tested)
select P.RDB$PROCEDURE_NAME
from RDB$PROCEDURES P
where NOT exists
(
SELECT 1
FROM RDB$DEPENDENCIES D
WHERE P.RDB$PROCEDURE_NAME = D.RDB$DEPENDED_ON_NAME
)
Adam