ADF - Activity used to insert data into database table

Kavitha Lakshmi Angajala 46 Reputation points
2021-02-08T05:20:33.157+00:00

My requirement is to insert records into database tables from pipeline
To achieve this I am using Lookup activity there selecting Query and writing insert query by this I am able to insert but as per documentation I observe that Lookup activity is not appropriate to use for Insert data can you please guide how can I achieve this

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

Accepted answer
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2021-02-16T04:55:00.053+00:00

    Hey @Kavitha Lakshmi Angajala ,
    Since the source data is from variables and not from an actual data source, I would prefer the below options rather than a copy activity: and most preferably SP activity :

    1. Stored procedure activity
      Create a stored procedure within your database with input parameters as the variable values and call stored procedure activity in ADF

    2) Lookup activity

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,916 Reputation points Volunteer Moderator
    2021-02-08T06:34:23.217+00:00

    From where do you want to insert the data?

    To copy the data, ideally Copy activity has to be used


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav


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.