I am using a trigger on my table for update.
When I was updating 1 row, it works. But when I update 20 rows at once, the log only show 1 history update.
I want to show all updated rows. How to make it?
This my simple sql:
create trigger Triger_Update_Product
on product
for update
as begin
declare @first char(10)
declare @after char(10)
select @first = name from deleted
select @after = name from inserted
insert into historyproduk
select @first, @after, getdate()
end