Insert and Update Data With Merge Statement In MS SQL Server

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ •

  • @youngjuggler
    @youngjuggler Рік тому

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

  • @Krazy_Shorts
    @Krazy_Shorts 2 роки тому

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

  • @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.