问题
I am using foreach loop to dynamically load file in database but in my source file year and month wise data is stored.If 2020 will come then issue will generate.I want to know that if i want to do unpivot of all those columns suppose 2020 and 2021 data came then it should store sales values in different column and month and year in different column.
By foreach loop i can read all file but if i want to unpivot it dynamically and want to store it in database.
if anyone have any idea how to resolve it or which process should follow then please let me know...
I am using Foreach Loop in ssis to loop through all files inside the folder.But when i want to unpivot files at that time it is giving error because yearwise column will change. And in my folder am having different yearwise files.How can i unpivot it dynamically??
This is My source files i want to unpivot all this files dynamically in ssis
来源:https://stackoverflow.com/questions/57851283/how-to-unpivot-columns-dynamically-in-foreach-loop-in-ssis