HumanResources.uDepartment Trigger

Information

NameHumanResources.uDepartment
Table NameHumanResources.Department
Created14.10.2005 1:59:51
Modified14.10.2005 1:59:51
Disabled 
For replication 
Instead of trigger 
Activates onUPDATE

SQL Script

CREATE TRIGGER [HumanResources].[uDepartment] ON [HumanResources].[Department] 
AFTER UPDATE NOT FOR REPLICATION AS 
BEGIN
    SET NOCOUNT ON;

    UPDATE [HumanResources].[Department]
    SET [HumanResources].[Department].[ModifiedDate] = GETDATE()
    FROM inserted
    WHERE inserted.[DepartmentID] = [HumanResources].[Department].[DepartmentID];
END;