I am using SqlBulkCopy
class to insert 50k rows at a time in table tbl_records
I have set a After Insert
trigger on this table and usi
Triggers never fire per-row. They fire for all rows of the corresponding DML statement. Rewrite your trigger so that it can cope with the INSERTED
table containing many rows. This is best-practice and required practice anyway.
it is firing trigger for only first row inserted out of 50k rows
You must be misinterpreting the situation, maybe because you were unaware that triggers can contain multiple rows in the virtual tables.