在 SSIS 中使用 excel 连接管理器导入大 excel 文件

Import big excel file using excel connection manager in SSIS

情况:

Right now I have several excel files that need to be populated to databases. Like usual, first I tried to import files using import task in SSMS, but it failed when I tried to edit the mapping and proceed to the next step. (Here I am guessing it is because of the size of excel that cannot process in the cache?), then I switch to using SSIS, but still, the excel connection manager does not allow me to preview or just finish connecting to the file. (after few minutes, it give me error says source does not exist?)

我尝试将文件拆分成小文件,成功了。

这是我的问题:

  1. what is the max number of rows that SSIS or SSMS could pre-load the file from excel?

  2. Instead of breaking the big file into small piece (not sure what is the exact size I need to distribute each time), is there any other way to import big size excel file? Because it is kind of not doable when having lots of files.

谢谢

SSIS 不限制它可以从任何特定来源导入的行数(除非您使用某种约束)。默认情况下,预览通常只提供大约 200 行,我不知道如何更改它。

虽然您可以将可用于查询元数据的行数更改为大概 10000,但对于预览来说,这是非常标准的。

您从中导入数据的 excel 版本是什么?您使用的 SSDT 版本是什么?您在最大的 excel 文件中遇到的最大行数是多少?