Hi @Shaun Bailey ,
Welcome to Microsoft Q&A platform and thankyou for posting your question here.
As I understand your query correctly, it seems probably you want to fetch the data from .csv file and loop through each of the rows and pass the value to stored procedure as input parameter. Please let me know if my understanding is incorrect.
To achieve the above requirement, kindly follow these steps:
1. Upload the .csv file to the ADLS location and create a dataset pointing to that file.
2. Create an ADF pipeline : Use lookup activity to fetch the data from the newly created dataset
3. Use ForEach activity to iterate over the lookup output by having this expression in the Items: @activity('Lookup1').output.value
4. Inside ForEach, use stored procedure activity . To reproduce this scenario, I have created a table with columns : FullName, Gender, Address
and created an SP to fetch the record based on the input parameter.
Import the parameters in stored procedure activity and pass the parameter values as @item().Address
, @item().FullName
, @item().gender
Note: Stored procedure activity doesn't return any data. If you want the data as the output of the activity, use stored procedure option inside lookup activity instead.
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators