简体   繁体   English

SSIS 导入具有多个 header 行的 excel 文件

[英]SSIS import an excel file with multiple header rows

Newbie doing SSIS import of csv and excel files.新手做 SSIS 导入 csv 和 excel 文件。 Things have been going well until I ran into an excel file with multiple header rows.事情一直进展顺利,直到我遇到一个包含多个 header 行的 excel 文件。 The number of rows between the headers varies.标题之间的行数会有所不同。 I only need to import the rows between two of the rows based on the value in column 1. Just say I only need to read the data between Role and Work Item I have no idea where to even start on this one.我只需要根据第 1 列中的值导入两行之间的行。只是说我只需要读取角色和工作项之间的数据,我什至不知道从哪里开始。 Here is a small sample of the data.这是数据的一个小样本。

Work Items
1
2
Primary Data View
5
6
7
8
Priority
11
12
13
Role
15
23
22
12
Work Item
12
45
Actor Items
55
22
33
52

Based on the information provided I assume the source file and filter records would be different.根据提供的信息,我假设源文件和过滤器记录会有所不同。 I would say extract all the data into a staging table.我会说将所有数据提取到临时表中。 Now do a transform query on the staging table to filter on required criteria and lastly would load only the filtered records into the target table.现在对临时表执行转换查询以过滤所需的条件,最后仅将过滤后的记录加载到目标表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM