HumanResources.uEmployeePayHistory Trigger

Information

NameHumanResources.uEmployeePayHistory
Table NameHumanResources.EmployeePayHistory
Created14.10.2005 1:59:52
Modified24.9.2008 16:41:46
Disabled 
For replication 
Instead of trigger 
Activates onUPDATE

SQL Script

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

    UPDATE [HumanResources].[EmployeePayHistory]
    SET [HumanResources].[EmployeePayHistory].[ModifiedDate] = GETDATE()
    FROM inserted
    WHERE inserted.[EmployeeID] = [HumanResources].[EmployeePayHistory].[EmployeeID]
        AND inserted.[RateChangeDate] = [HumanResources].[EmployeePayHistory].[RateChangeDate];
END;