RRinTetons
IS-IT--Management
I've got a trigger on a Table A to handle adding row to Table B based on rules about the newly inserted row in Table A. It works well when rows are entered one at a time via the user interface, but it fails when import many rows into a staging Table C and then try to insert then into A with
The debugger show the first line of code in the trigger that attempt to extract a value fro INSERTED returning multiple rows.
So, in the body of an INSERTED trigger that's been hit with a multi row insert, how do I isolate each row for processing?
-
Richard Ray
Jackson Hole Mountain Resort
Code:
INSERT INTO TableA
....
....
....
SELECT * FROM TableC
The debugger show the first line of code in the trigger that attempt to extract a value fro INSERTED returning multiple rows.
So, in the body of an INSERTED trigger that's been hit with a multi row insert, how do I isolate each row for processing?
-
Richard Ray
Jackson Hole Mountain Resort