supermatchgame
Programmer
I have written a trigger on a table that will fire whenever an insert happens. The trigger is set to insert the current date into a seperate table whenever the insert happens.
So if I insert 17 new rows into my trigger table, I would expect the trigger to fire 17 times and insert 17 rows with dates into the seperate table.
But this isn't happening. The messages section in the query analyser of sql 2005 says (1 row(s) affected) than (17 row(s) affected). All 17 inserts are there, but only one row with a data has been put in my other table.
Can someone explain where I've gone wrong?
So if I insert 17 new rows into my trigger table, I would expect the trigger to fire 17 times and insert 17 rows with dates into the seperate table.
But this isn't happening. The messages section in the query analyser of sql 2005 says (1 row(s) affected) than (17 row(s) affected). All 17 inserts are there, but only one row with a data has been put in my other table.
Can someone explain where I've gone wrong?