I was just told that SQL Server updates are executed one row at a time. So if 100 rows were updated, a trigger would also be executed 100 times.
Is this accurate? Does this also mean that Inserted
pseudo table only holds one row at a time?
I was just told that SQL Server updates are executed one row at a time. So if 100 rows were updated, a trigger would also be executed 100 times.
Is this accurate? Does this also mean that Inserted
pseudo table only holds one row at a time?
No this is not correct. If a single UPDATE affects multiple rows, a TRIGGER on that table would only fire once, and the virtual tables inserted
and deleted
would contain all the rows that were affected by the UPDATE.