如何将提到的Excel格式转换为上述表格格式

时间:2014-03-06 15:06:32

标签: sql-server-2008 excel-vba ssis ssis-2008 vba

我有一个excel文件,如下所示enter image description here

我需要将这些数据加载到具有下述格式的表格中

enter image description here

如何在SSIS中实现这一点。我的意思是所有列标题都将作为row元素插入,如下所示。是否使用pivot?

1 个答案:

答案 0 :(得分:1)

我相信你确实需要UNPIVOT数据;它看起来像这样:

Input Column | Destination Column | Pivot Key Value
Period1      | Value              | Period1
Period2      | Value              | Period2
Period3      | Value              | Period3
Period4      | Value              | Period4

使用Pivot键值列名称:Period