Copy data from one sql table to a staging table using Azure Data Factory- Copy Activity

jigsm 236 Reputation points
2021-03-12T05:16:14.397+00:00

I need to copy data from one sql table to another staging table

Currently, I am using copy activity and in the source I am calling a procedure with some parameters , and in the sink I am looking to dump the output of the procedure into a staging table.

However, I am not able to find a way to add the sql table name in the source.(I have created the staging table in the DB.)

Is there any way, to dump the data into the staging table using Copy Activity?

Regards

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

Accepted answer
  1. Nandan Hegde 29,896 Reputation points MVP
    2021-03-12T05:38:28.67+00:00

    Hey @jigsm ,
    In the copy activity :
    Under Source :
    77014-sp.png

    under sink:
    within dataset you can select the specific table in which you want to copy the data
    76927-sink.png

    On a side note: are both source and sink tables in same database?
    If yes, you can have your logic implemented in a single SP and call the stored procedure activity

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,621 Reputation points
    2021-03-12T05:30:22.98+00:00

    If you want to select your staging table where data has to be loaded, just create a new dataset pointing to that table.

    77072-image.png

    ----------

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

    0 comments No comments