Advertisement
Ilya_Bykonya

Untitled

May 1st, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. USE [AdventureWorks2014]
  2. GO
  3. /****** Object: Trigger [Person].[onUpdatePersonPassword] Script Date: 01.05.2023 18:09:00 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. -- =============================================
  9. -- Author: <Author,,Name>
  10. -- Create date: <Create Date,,>
  11. -- Description: <Description,,>
  12. -- =============================================
  13. ALTER TRIGGER [Person].[onUpdatePersonPassword] ON [Person].[Password]
  14. AFTER UPDATE
  15. AS
  16. BEGIN
  17. UPDATE [Person].[Password]
  18. SET [Password].[ModifiedDate] = GETDATE()
  19. WHERE BusinessEntityID = (SELECT BusinessEntityID from inserted)
  20. END
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement