Trigger with multiple rows

Hi i've searched a lot with no results, im trying to do a trigger, this is the scenario

Got 3 tables, Product, Lines, Sublines

If Update Multiple sublines it should be updated to the products table, but i cant because the inserted table has multiple rows, the only way to do this is using cursors

(Note, i cant do this using cascade because there are others, if i include this get a circular problem so i have to solve this other way)




Answer this question

Trigger with multiple rows

  • Wint

    You have to provide more info, perhaps you can post some DDL of the table and a scenario where you show what you are trying to do.

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---

  • Trigger with multiple rows