Insert and Update Data With Merge Statement In MS SQL Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 5

  • @Krazy_Shorts
    @Krazy_Shorts ปีที่แล้ว

    Oh wow, didn't realize there was an OUTPUT option on the MERGE command. pretty handy!

  • @youngjuggler
    @youngjuggler ปีที่แล้ว

    This is great thank you so much! I love how much you prove your work and code.

  • @pahaadi_soul
    @pahaadi_soul ปีที่แล้ว +1

    Hey Jen.. thanks for the info , could you please help me in understanding where I can use this in ssis, do i have to make a stored procedure and call this merge statement or should I write the merge statement in a sql task in ssis

  • @MarleighShaw
    @MarleighShaw ปีที่แล้ว

    Hi, can you do one that troubleshoots when all the data you have defined in your insert statement doesn't correctly populate in the output on the second execution? It all correctly inserts on the first execution. However, on the second execution only one of those inserted values repopulates.

    • @jiejenn
      @jiejenn  ปีที่แล้ว

      In most cases, you will rollback if the output is different from what the expected.