Hi,
I was wondering if there is a way to run SQL queries on my pipeline.
Option 1: use a "LookUp" activity
It's a type of a trick, since officially Lookup activity meant to retrieve a dataset, but in fact using LookUp you can run any query directly including UPDATE or CREATE for example, as long as you close it with something like SELECT. You can have an UPDATE and use "SELECT 0 as id".
https://learn.microsoft.com/azure/data-factory/control-flow-lookup-activity?WT.mc_id=DP-MVP-5001699
Option 2 (more common probably): use a stored procedure
Simply use the Stored Procedure action
https://www.sqlshack.com/executing-stored-procedures-from-data-pipelines-in-azure-data-factory/
Option 3: Script activity
You can also use Script activity to run your script
https://learn.microsoft.com/azure/data-factory/transform-data-using-script?WT.mc_id=DP-MVP-5001699
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is