Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/10/2014, 09:05
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: trigger me marca error en inserted

Código SQL:
Ver original
  1. CREATE TRIGGER pruebando
  2. ON solicitud_notas
  3. FOR UPDATE
  4. AS
  5. BEGIN
  6. IF(UPDATE(numnota))
  7. BEGIN
  8. DECLARE @numnota VARCHAR(30)
  9. SET @numnota=numnota FROM inserted
  10. SELECT @numnota
  11. END
  12. END

inserted y deleted son una tabla mas tienes que especificar eso en el from....

Y amigo iislas el select en el trigger si funciona :P nada mas que como mencionas habria que ponerle un where al inserted jejejejeje

saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me