HumanResources.uEmployeeAddress Trigger
Information
| Name | HumanResources.uEmployeeAddress |
| Table Name | HumanResources.EmployeeAddress |
| Created | 14.10.2005 1:59:52 |
| Modified | 14.10.2005 1:59:52 |
| Disabled |   |
| For replication |   |
| Instead of trigger |   |
| Activates on | UPDATE |
SQL Script
CREATE TRIGGER [HumanResources].[uEmployeeAddress] ON [HumanResources].[EmployeeAddress]
AFTER UPDATE NOT FOR REPLICATION AS
BEGIN
SET NOCOUNT ON;
UPDATE [HumanResources].[EmployeeAddress]
SET [HumanResources].[EmployeeAddress].[ModifiedDate] = GETDATE()
FROM inserted
WHERE inserted.[EmployeeID] = [HumanResources].[EmployeeAddress].[EmployeeID]
AND inserted.[AddressID] = [HumanResources].[EmployeeAddress].[AddressID];
END;