Is there a way to reference the where clause in instead of update trigger?
** More info **
I’m trying to get around this issue:
Modify update statement includes primary key in trigger.
This wonder product will try to update rows that have changed or that may not even exist. Since I don’t need/care about the existing data if I could modify the where clause to be more generic the update would run and I could move on.
Well the deleted table shows the data you selected with the where clause, so if you know the where clause is on column 1 you know the values you asked for? But directly know what is inthe where clause, no. The only data you have avaliable in a trigger is the data in the table before and after the update statment.
Maybe if you expressed what you want to do inteh trigger it would be easier to help you.