Ver Mensaje Individual
  #20 (permalink)  
Antiguo 05/11/2012, 09:35
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, 8 meses
Puntos: 774
Respuesta: Modificar multiples registros con un solo trigger

Código SQL:
Ver original
  1. CREATE TRIGGER ON tabla after UPDATE
  2. AS
  3. BEGIN
  4.  
  5. DECLARE @COUNT INT
  6. SELECT @COUNT=conut(*) FROM deleted
  7. IF @COUNT=1
  8. BEGIN
  9. tus instrucciones
  10. END
  11.  
  12. END
algo asi :)
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me