Maintain row count(insert update delete ) Audit mechnism using ADF in datawarehouse

Girish13 1 Reputation point


I want to use audit mechanism like how many rows are in inserted/updated/deleted into dim and fact and also fetch source count in ADF.

Can anyone guide me in ADF is there any row count functionality available ? or please guide me for logic/approach for the same.

table structure like below approximately

Table name Source count Insert count Update count Delete count

Thanks in advance.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
8,478 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 27,241 Reputation points MVP

    Hey @Girish13 ,
    Can you please provide us the data loading architecture which you have?
    Because there are multiple ways to achieve SCD 2:

    1. ELT process

    ADF would copy the data into a staging table in the data warehouse.
    The SCD logic would be implemented within a stored procedure in AEDW.
    In that scenario, you can create variable within the stored procedure for insert, update,delete counts and log it into the logging table.

    The copy activity provides only the rows transferred count and not update/delete counts.

    2) You can even achieve SCD via data flow tasks and get the needed count via activity output :

    Everything depends on the architecture which you currently have

    0 comments No comments