Production.uProductInventory Trigger

Information

NameProduction.uProductInventory
Table NameProduction.ProductInventory
Created14.10.2005 1:59:53
Modified14.10.2005 1:59:53
Disabled 
For replication 
Instead of trigger 
Activates onUPDATE

SQL Script

CREATE TRIGGER [Production].[uProductInventory] ON [Production].[ProductInventory] 
AFTER UPDATE NOT FOR REPLICATION AS 
BEGIN
    SET NOCOUNT ON;

    UPDATE [Production].[ProductInventory]
    SET [Production].[ProductInventory].[ModifiedDate] = GETDATE()
    FROM inserted
    WHERE inserted.[ProductID] = [Production].[ProductInventory].[ProductID]
        AND inserted.[LocationID] = [Production].[ProductInventory].[LocationID];
END;