Delete data from an Azure SQL database after copyingit to an Azure Blob

Sobaba 20 Reputation points
2024-07-13T12:24:59.7966667+00:00

How can I create a pipeline in ADF to delete data from an Azure SQL database after copying it to an Azure Blob, without using the copy or lookup activities to execute the query? I need to create a view and perform some activity. Is there a custom method to achieve this?

Azure SQL Database
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,834 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,665 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 24,376 Reputation points
    2024-07-13T12:26:25.6333333+00:00

    If you're using data mapping flows in ADF, there's a n activity available for executing custom SQL scripts:

    In a standard pipeline, you can use the Stored Procedure activity to achieve this:

    You'll need to write the delete logic in a stored procedure and then invoke this stored procedure from Data Factory.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.