create table t1(col int);
create table t2(col int);
CREATE TRIGGER tr
ON t1
AFTER INSERT
as
begin
INSERT INTO t2(col) values(1)
end;
-- tables and trigger created
INSERT INTO t1(col) values(1), (2)
When I run this insert query, in table t2 insert event happens just once.
Needed FOR EACH ROW statement in trigger, but how to make this in SQL Server? Not found in documentation, and after googling, not found some good solution also.