将 Excel 文件转换为 CSV,然后使用 SSIS 加载到 SQL Table

Convert Excel File to CSV Then Load to SQL Table Using SSIS

我有一个非常大的 excel 数据要加载到 SQL table。对于小数据,它有效。但是,对于大数据(超过 2000 万条记录),我得到以下错误。

Excel to CSV : There were errors during task validation. Excel to CSV Error: "Excel Source" failed validation and returned validation status and returned validation status "VS_ISBROKEN". Excel to CSV: opening a rowset for "Table1$" failed. check that the object exists in the database. Excel to CSV:Error : SSIS Error code DTS_E_OLEDBERROR. An OLE DB error has occurred .Error code 0x80004005.

通常当我收到此错误时,目标 table 有问题。检查 table 是否存在以及源和目标之间的字段是否匹配。

我的包裹没有问题。问题出在 excel 文件上。对于小数据,扩展名 .xlsx 有效(excel 2007)。对于大数据,我必须将数据转换为 Excel 97 版本,即 (.xls)。这样做有助于加载数据