Urge !!
Publicado por Dante Balandrano A. (17 intervenciones) el 03/06/2005 18:24:03
Hola comunidad me marca un error al actualizar una tabla desde una datawindow:
"Maximum stored procedure nesting level exceeded (limit 16)."
Y por lo cual no puedo actualizar la misma, utilizo un trigger y es el siguiente:
CREATE TRIGGER dbo.tr_upt_nac_pre ON dbo.cdp_datos_generales
FOR UPDATE AS
BEGIN
Update pre_registros
set reg_nombre = IsNull ( inserted.cdp_gral_nombre_cria,"SIN DEFINIR" ),
reg_reg_padre = inserted.cdp_gral_reg_p,
reg_reg_madre = inserted.cdp_gral_reg_m,
cruza_id = IsNull ( inserted.cdp_gral_em,"Z"),
color_id = IsNull ( inserted.color_id, 0 ),
marca_id = IsNull (inserted.marca_id,0)
from inserted
where ( inserted.soc_id = pre_registros.soc_id
and inserted.pre_id = pre_registros.pre_id )
END
A alguien le ha ocurrido esto? si alguien me ayude se lo agradeceré. Saludos
"Maximum stored procedure nesting level exceeded (limit 16)."
Y por lo cual no puedo actualizar la misma, utilizo un trigger y es el siguiente:
CREATE TRIGGER dbo.tr_upt_nac_pre ON dbo.cdp_datos_generales
FOR UPDATE AS
BEGIN
Update pre_registros
set reg_nombre = IsNull ( inserted.cdp_gral_nombre_cria,"SIN DEFINIR" ),
reg_reg_padre = inserted.cdp_gral_reg_p,
reg_reg_madre = inserted.cdp_gral_reg_m,
cruza_id = IsNull ( inserted.cdp_gral_em,"Z"),
color_id = IsNull ( inserted.color_id, 0 ),
marca_id = IsNull (inserted.marca_id,0)
from inserted
where ( inserted.soc_id = pre_registros.soc_id
and inserted.pre_id = pre_registros.pre_id )
END
A alguien le ha ocurrido esto? si alguien me ayude se lo agradeceré. Saludos
Valora esta pregunta
0