Ver Mensaje Individual
  #18 (permalink)  
Antiguo 06/08/2012, 12:36
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 9 meses
Puntos: 774
Respuesta: Dudas en INSERT

create trigger after insert [db_servidor].[dbo].t_venta
as
insert into [db_servidor].[dbo].t_detalle
select dato1,dato2,dato3,(select autoid from inserted) from [t_cliente].[dbo].t_detalle




algo asi? y busca como se hace un trigger :)
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me