Search code examples
parametersazure-data-factoryexecute-sql-task

Azure Data Factory Set Parameter with SQL Query


What is the alternative to SSIS' Execute SQL Task in ADF?

I've created a Pipeline parameter called ExtractDate (i know there isn't a date datatype option so I'm using a string datatype here) that I want to populate with the result of a SQL Query and then pass this into other pipelines.

I might be searching for the wrong terms but there doesn't seem to be many tutorials on how to write a SQL query within dynamic content to populate a paramater.

Any examples would be appreciated


Solution

  • You can make this work using a variable if you are calling one pipeline from within another pipeline, but you can't pass values between pipelines which are peers of one another.

    You cannot change a pipeline parameter from within the pipeline.

    OK

    No good

    For the first situation which will work, here are the details... Lookup

    Set Variable

    Pass to Pipeline