简体   繁体   中英

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

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.

好的

不好

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

设置变量

传递到管道

Data Factory has the Stored Procedure activity can help us execute the stored procedure in Azure SQL or SQL Server. Or we also could use Lookup active to get the SQL query result.

When the Azure SQL /SQL Server as the source, Data Factory supports query operation.

But for the pipeline parameter, we only can pass the value form the pipeline parameter to pipeline active, we can't pass or set the value from the inner active result to parameter. That means It's impossible to populate with the result of a SQL Query and then pass this into other pipelines.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM