The Merge command on the target table with the identity column gives an error, although we are not updating/inserting the identity column.

Charithra K S 1 Reputation point
2021-11-30T09:34:06.287+00:00

153692-pnbhk.jpg

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha 19,547 Reputation points Microsoft Employee Moderator
    2021-12-03T04:14:13.213+00:00

    Hello @Charithra K S ,

    MERGE in Synapse will not work on tables with Identity columns. This is a known restriction of MERGE in preview .

    https://learn.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql?view=azure-sqldw-latest&preserve-view=true#remarks

    154627-image.png

    We request to please log the ask here .https://feedback.azure.com/d365community/idea/b527b8f0-0825-ec11-b6e6-000d3a4f07b8#comments

    Thanks
    Himanshu

    -------------------------------------------------------------------------------------------------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.