How to Unpivot Columns dynamically in foreach loop in ssis

独自空忆成欢 提交于 2020-02-05 09:53:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!