Ver Mensaje Individual
  #4  
Antiguo 18-06-2004
lbuelvas lbuelvas is offline
Miembro
 
Registrado: may 2003
Ubicación: Colombia
Posts: 377
Reputación: 22
lbuelvas Va por buen camino
Me puse a ver algo del diccionario de datos, fijense que con

select *
from rdb$triggers
where rdb$trigger_name not starting with 'RDB$'
and rdb$trigger_name not starting with 'CHECK'

se pueden ver los triggers del usuario y el campo que dice
si esta activo/inactivo el trigger es inactive (0 activo, 1 inactivo)

sera que para desactivarlos la instruccion de abajo funcionará ?

update
from rdb$triggers
set inactive = 1
where rdb$trigger_name not starting with 'RDB$'
and rdb$trigger_name not starting with 'CHECK'

y para activarlos

update
from rdb$triggers
set inactive = 0
where rdb$trigger_name not starting with 'RDB$'
and rdb$trigger_name not starting with 'CHECK'
__________________
Luis Fernando Buelvas T.
Responder Con Cita