Hi All,
I have looked at several examples of triggers that fire on update of a column, but I would like to fire a trigger on the the update of a column of a particular record. Ideally my trigger would look something like this:
CREATE TRIGGER test_trigger
ON [dbo].[IMINVLOC_SQL]
FOR UPDATE
AS
IF UPDATE (qty_on_hand)
WHERE item_no = '15001' and loc = '01'
When I try this, the syntax checker complains about the WHERE keyword. Anybody tried this before?
Thanks,
Rob
Cytec Corporation
rbrown@cyteccorp.com
I have looked at several examples of triggers that fire on update of a column, but I would like to fire a trigger on the the update of a column of a particular record. Ideally my trigger would look something like this:
CREATE TRIGGER test_trigger
ON [dbo].[IMINVLOC_SQL]
FOR UPDATE
AS
IF UPDATE (qty_on_hand)
WHERE item_no = '15001' and loc = '01'
When I try this, the syntax checker complains about the WHERE keyword. Anybody tried this before?
Thanks,
Rob
Cytec Corporation
rbrown@cyteccorp.com