Ver Mensaje Individual
  #44 (permalink)  
Antiguo 06/09/2012, 16:45
lilia_cv
 
Fecha de Ingreso: septiembre-2010
Mensajes: 53
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Incrementar un campo desde un trigger

SABES QUITE TODOS MIS CAMPOS Y ME QUEDE SOLO CON UNO CAMPO1 Y LA INSERCION :

INSERT INTO dbdestino.dbo.tableDestino
(ID, CAMPO1)
SELECT row_number() over (partition BY i.CAMPO1 ORDER BY i.CAMPO1),
i.CAMPO1
FROM inserted i
END

Y NADA HABER TE AGREGO AL MSN UN TOKE