Share via

Azure data factory

Anandazure 46 Reputation points
2021-11-03T11:16:34.47+00:00

1.The job should only extract new records from the source database

2.The job should be able to identify these new records without having to record job start times/record numbers etc.in a database

HOW TO ACHIEVE IT

Azure SQL Database

1 answer

Sort by: Most helpful
  1. HimanshuSinha 19,637 Reputation points Microsoft Employee Moderator
    2021-11-04T19:45:47.373+00:00

    Hello @Anandazure ,
    Thanks for the ask and using Microsoft Q&A platform .
    As I understand at this time the intend to copy records from SQL , but unfortunately you have not mentioned what is the sink , I am assuming ist SQL .

    You have also not mentioned the record volume , if the record volume is less , may be you can use

    Option 1

    1. Use a Lookup , read the source
    2. Use a foreach(FE) loop
    3. Inside the FE loop call a Store procedure activity and call a SP on the sink side and INSERT the record .

    Option 2

    1. You can use copy activity and dump all the records from the source .
    2. Call a Store procedure activity and call a SP on the sink side and INSERT the record.

    Option 3

    1. You can also use the mapping data flow with Alter row transformation to achieve this .

    Please do let me know how it goes .
    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

    Was 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.