The 'inserted' pseudo table lists the rows which have been inserted into a table. Thus, code in the trigger along the lines of:
Code:
INSERT INTO tbl2 (col1, col2)
SELECT col1, col2 FROM inserted
would do the trick, but for a complication when rows are updated.
The 'deleted' pseudo table lists those rows which have been removed. Updates to a table are implemented as a delete and add, so updated rows are in both tables, and if you only care about new rows, you'll want to modify that INSERT so it only selects rows which are not in 'deleted'.
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com