Share via

Import parameter (Table type & Table type parameter name) for stored procedure in Azure Data Factory

Anonymous
2021-07-22T23:13:00.5+00:00

I am trying to figure out what to put here:
117195-image.png

Currently, I am just trying to run a stored procedure to test out.
First task is truncate table:

117262-image.png

I am not sure this would help, but when I execute this stored procedure, this is output:
117217-image.png

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Answer accepted by question author

Vaibhav Chaudhari 39,011 Reputation points Volunteer Moderator
2021-07-23T05:19:03.913+00:00

If the SP just has truncate table statement, you can avoid using this SP and use pre-copy option. This way, first data will get truncated before copy and later data will get loaded to target table which is selected in Sink dataset.

117301-image.png

Also see this - https://azurelib.com/truncate-table-before-copy/

----------

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

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-07-23T00:05:11.033+00:00

    @Ryan Abbey
    If there is no existing stored procedure, then, you select none.

    If you select none, then those options (Import parameter - Table type and Table type parameter name) do not show up.

    117174-image.png

    117196-image.png

    Was this answer helpful?


  2. Ryan Abbey 1,186 Reputation points
    2021-07-22T23:57:15.437+00:00

    If you have no parameters in the stored procedure, then removing them would suffice... if the long term intent is to provide a generic stored procedure then that may come in handy and I think you can still run the process with those values left blank... or random as you see fit

    How did they get in there? Are you possibly pointing to a different database (where the stored proc already exists) to where you expect?

    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.