hello
I have a table 'Test' in sql server with following columns
|path |Name| Table name|
|C:\Test1 |x.txt | Test1 |
|C:\Test2 |y.txt |Test2 |
|C:\Test3 |a.txt |Test3 |
|C:\Test4 |b.txt |Test4 |
My task is to read this table from sql, loop through each row and get complete path of file and load data from each file to corresponding table. All the tables have same structure.
This is solved now.
Regarding this task I now have another table which contains packagename, taskname, start_datetime, end_datetime, no. of rows downloaded from source, no. of rowinserted and no. of rows updated.
I need to insert into this table with corresponding values after each iteration of foreach loop. How can I do this??