Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 fire trigger for each row during bulk insert

Author  Topic 

sabirpatel
Starting Member

22 Posts

Posted - 2004-09-22 : 02:38:18
Hi all,

I have defined a trigger on a table lets say table abc. Now i use a bulk insert command for populating the table abc.

insert into abc
select * from xyz

Now the problem is trigger only gets fired once. Even though there are many rows inserted still it is only executed once.

Is there a way to solve the problem and make the trigger fire for each row inserted.

Thanks

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2004-09-22 : 03:04:37
Have a look at "triggers, multirow" in BOL

rockmoose
/* Chaos is the nature of things...Order is a lesser state of chaos */
Go to Top of Page
   

- Advertisement -