Which Perfroms Better

  • I have an Insert Trigger on a TableA that Inserts a record into TableB whenever an Insert occurs on TableA.

    My question is, is better for performance that I actually perform 2 Inserts in TableA and TableB accordingly as oppossed to having the Insert Trigger on TableA?


    Kindest Regards,

  • Yes, two inserts in one transaction is faster than chaining inserts through triggers.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply