ich kann ja über die rdb$descritions die Abhängigkeiten im Firebird ermitteln, also in meinem speziellen Fall, welche Felder in welchem Trigger verwendet werden, Z.B. so:
Code: Alles auswählen
select rdb$dependencies.rdb$field_name
, rdb$dependencies.rdb$depended_on_name
, list(trim(rdb$dependencies.rdb$dependent_name), ', ') as Objekte
, count(*) as anzahl
from rdb$dependencies
join rdb$triggers on rdb$triggers.rdb$trigger_name = rdb$dependencies.rdb$dependent_name
-- WHERE rdb$dependencies.rdb$field_name IN ('ANG_AM', 'ANG_BEN_ID', 'ANG_DT', 'ANG_VON', 'GEA_AM', 'GEA_BEN_ID', 'GEA_DT', 'GEA_VON')
and rdb$dependencies.rdb$dependent_type = 2
and rdb$triggers.rdb$system_flag = 0
and not rdb$dependencies.rdb$field_name is null
group by rdb$dependencies.rdb$field_name
, rdb$dependencies.rdb$depended_on_name
having count(*) > 1
order by count(*) desc
Gruß Jan