1

I have a SQL script stored in Azure Blob container as a ".sql" file. I want to execute/invoke this code using Azure Data factory. Please note that the script already has the SQL query I wish to execute and I simply intend to point to it and invoke it using ADF. How can we achieve this ?

5
  • do you want to execute the script in source query option? Commented Dec 21, 2020 at 8:40
  • @Leon Yue, if that means executing the script directly, then yes. I just don't want to copy and paste the content of the SQL script in the option of an activity and then execute. I wish to call the script directly. Commented Dec 21, 2020 at 9:15
  • Data Factory more focus on data transferring not executing the script directly. It can't achieve that for now. You need achieve that in code level and call the function in ADF. Commented Dec 21, 2020 at 9:23
  • @LeonYue, Thanks a lot. Looks like I will have to write a function for the same and execute the function using ADF. Thanks once again. Commented Dec 21, 2020 at 9:38
  • You're welcome! May I post it as answer? You can accept it as answer. This can be beneficial to other community members. Thank you. Commented Dec 21, 2020 at 9:41

1 Answer 1

1

Data Factory more focus on data transferring not executing the script directly. It can't achieve that for now. You need achieve that in code level and call the function in ADF.

Like you said, you will have to write a function for the same and execute the function using ADF.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for this response, I am looking for something similar that the OP describes. What do you mean specifically by "function"? Could you perhaps point to some documentation that is related to your answer? Thanks in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.