I have an SSIS package that loads records into a SQL table using an OLE DB Destination (NOT using fastload). The table has a simple INSERT trigger on it which looks for a value in a column ie. 'EOF'; this is set on the last row loaded. On encountering this row the trigger fires an UPDATE for the rows that have just been loaded (they have a common field value). The UPDATE statement only updates the first row that has been loaded, instead of all the rows just loaded. Running exactly the same process using a DTS package works as expected ie. the trigger updates all of the rows.
↧