Running a stored procedure only once after all records in a CSV file have been saved to the database #445
Labels
documentation
Documentation may be added or completed on the portal
question
Further information is requested
Let's say we have a data pipeline like this:
A CSV is parsed, its records are saved to a table on a SQL Server database and then I want to run a stored procedure which depends on that data.
If I try to run it and the CSV file contains 5 rows, stored procedure is being run 5 times, and I only need to run it once.
I tried to create a second data pipeline to run the stored procedure like this:
but when I try to execute it, stored procedure is not being run after whole CSV import is complete and rows are stored in the table, it's being run somewhere in between and the stored procedure can't get the data it needs since it has not been saved yet.
How can I signal to the pipeline, that I need to run the stored procedure just once?
I tried to create a separate DefineProcess method for running SP, but that seems really clumsy.
What would you advice?
Thank you.
The text was updated successfully, but these errors were encountered: