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.
| Author |
Topic |
|
bubix
Starting Member
24 Posts |
Posted - 2005-11-21 : 05:23:10
|
| Hello,If I have a trigger "instead of insert" on tableA.When I insert a set of rows(in the same time) in tableA.How many times the trigger is called???Once or for each row???Thanks |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-11-21 : 05:26:49
|
| Nope - once for all rows.The inserted table will have all the rows inserted.That's if you do it in a single statement. Some things may do inserts one row at a time even though you think it is a single operation - e.g. access, dts, replication, ...If you do it via a insert tbl select ... from ... it will fire once.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|