Consider a trigger after update on the table A.
For every update the trigger should update all the records in table B.
Then consider this query:
UPDATE A SET X = Y
Apparently there are many rows updated. After the update the trigger takes place.
Now if the trigger would be using inserted table, and you would like to update the table B with every single row of the temporary table inserted, and in MSDN is not recommended to use cursors, how would you do that?
Thank you
I don’t know what exactly you want to do in your update trigger, but you could e.g.
or something else – you need to tell us a bit more about what it is you want to do with table B! But it’s definitely possible to update, insert into or other things, without using a cursor and handling multiple rows from the
Insertedtable.