Production.uProductInventory Trigger
Information
| Name | Production.uProductInventory |
| Table Name | Production.ProductInventory |
| Created | 14.10.2005 1:59:53 |
| Modified | 14.10.2005 1:59:53 |
| Disabled |   |
| For replication |   |
| Instead of trigger |   |
| Activates on | UPDATE |
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;