简体   繁体   English

如何使用SSIS将Excel来源中的多个Excel工作表导入SQL?

[英]How to import multiple excel sheets in an excel source to SQL using SSIS?

How to import multiple excel sheets in an excel source to SQL using SSIS? 如何使用SSIS将Excel来源中的多个Excel工作表导入SQL?

I will have to import multiple excel files and each file has 8 sheets. 我将必须导入多个Excel文件,每个文件有8张纸。 Number of sheets on all the input files remains same. 所有输入文件上的页数保持不变。

  • Each Sheet will be imported to each table. 每个工作表都将导入到每个表中。
  • Each sheet will have different row # ( Sheet1$A:K, Sheet2$A3:F ..) to start the import process. 每个工作表将具有不同的行号(Sheet1 $ A:K,Sheet2 $ A3:F ..)以开始导入过程。

How to set this setting in the Excel Source ? 如何在Excel Source中设置此设置?

If you are looking to import all sheets in an Excel workbook into SQL you can refer to the following links: 如果希望将Excel工作簿中的所有工作表导入SQL,则可以参考以下链接:

But you must notice that if the excel worksheets have different structures, then you should create multiple excel source, also if loop through many excel files you should create a foreach loop container to loop over files and inside it you should create another foreach loop container to loop over worksheets. 但是您必须注意,如果excel工作表具有不同的结构,那么您应该创建多个excel源,并且如果要循环浏览许多excel文件,则应该创建一个foreach循环容器来循环文件,而在其中应该创建另一个foreach循环容器来循环工作表。

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

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