Error: DML Operations are not supported with external tables when attempting to delete a ROW on Synapse SQL Dataware Serverless Pool

Carlton Patterson 741 Reputation points
2022-12-19T14:06:56.293+00:00

Can someone let me know how to delete the first row from the External Table on Serverles SQL Pool

When I execute the code

DELETE TOP (1)
FROM [dbo].[MyTable]

I get the error:

DML Operations are not supported with external tables.

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.
5,373 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2022-12-19T21:08:27.743+00:00

    Hello @Carlton Patterson ,

    Welcome to the MS Q&A platform.

    The error message is expected when you try to delete the rows from the external tables. External tables are read-only. We can't perform DML operations.

    With Synapse SQL, you can use external tables to read external data using dedicated SQL pool or serverless SQL pool.

    Please see the below documentation for more details. Let us know if you have any further questions.

    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/develop-tables-external-tables?tabs=hadoop

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

    • Please don't forget to click on 130616-image.png and 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

Your answer

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