简体   繁体   中英

SQL Query using script activity in ADF

I have the script activity in ADF pipeline:

在此处输入图像描述

On running this, I see the following error. What does this indicate and how do fix this?

在此处输入图像描述

You are trying to make tableName dynamic. It won't work like that. Better create a variable and use Set variable activity to set the tableName. Then use the same in your script Activity.

select * from @{variables('tableName')} where id=@id

Set variable activity settings: 在此处输入图像描述

Here is the script activity settings: 在此处输入图像描述

Output: 在此处输入图像描述

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