ADF - Stored Proc Activity

Santhi Dhanuskodi 325 Reputation points
2024-10-07T10:01:53.66+00:00

Hi,

We are using ADF to ETL the data into Azure SQL, and the solution is using SCD type 4. so we have 2 tables TGT and TGTHistory.

I have a stored proc which does incremental load of data, inserts/updates data into these 2 tables.

I would like to know if SP fails for any reason during the middle of execution, say 10 records were inserted and 5 were updated, But there are some more to be inserted. Will ADF automatically rollback the transaction? and Can we see the TGT and history tables in original state how it was before SP execution. Or should we handle rollback/commit in SP?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,431 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 34,941 Reputation points MVP
    2024-10-07T10:16:35.5666667+00:00

    As you are using Stored procedure do all your biddings/logic, ADF is there just to trigger it but everything is governed by the SP.

    So you would have to manage transactions within your SP by begin transaction/commit transaction to ensure rollback in case of any intermediate failures


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.