简体   繁体   English

使用SSIS 2008从Excel导入多个表-使用ADO.Net源跳过行

[英]Importing Multiple Tables from Excel Using SSIS 2008 - Skipping Rows with ADO.Net Source

I have created a SSIS 2008 Package which imports rows from a spreadsheet. 我创建了一个SSIS 2008程序包,该程序包从电子表格中导入行。 I need to start on row 4 so I have used the OpenRowset property of the Excel connection manager. 我需要从第4行开始,因此我使用了Excel连接管理器的OpenRowset属性。

However, I need to import multiple tables. 但是,我需要导入多个表。 Can this be done with the Excel Connection Manager? 可以使用Excel Connection Manager来完成吗?

I believe it can be done with an ADO.Net Source, but I don't know how to skip rows using that. 我相信可以使用ADO.Net源代码完成此操作,但是我不知道如何使用它来跳过行。

Can anyone point me in the right direction? 谁能指出我正确的方向?

any way you can add a rownumber on your datasource? 有什么方法可以在数据源上添加行号? then as you pull data from your datasource in SSIS, you can conditonally split on rownumber < 4 然后当您从SSIS中的数据源中提取数据时,可以有条件地拆分行号<4

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

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