使用Microsoft Jet OLEDB的CSV列限制 [英] Column limitation on CSV using Microsoft Jet OLEDB

查看:142
本文介绍了使用Microsoft Jet OLEDB的CSV列限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个包含约350列的CSV导入数据。这CSV导入是固定的,我有超过它完全没有控制。

I'm importing data from a CSV that contains approx 350 columns. This CSV import is fixed and I have absolutely no control over it.

如果我试图在Excel 2003中打开CSV,它只是部分由于255列极限载荷(IV)。

If I attempt to open the CSV in Excel 2003, it only partially loads due to the column limit of 255 (IV).

在我使用的OleDb和Microsoft.Jet.OLEDB.4.0它也只显示255列装载CSV到数据集。更糟糕的是,虽然,在试图访问数据对于某些这些255列时,它显示了不正确的数据,并incosistently分裂向上的值。

When I load the CSV into a DataSet using OleDb and Microsoft.Jet.OLEDB.4.0 it also only shows 255 columns. Worse still though, when attempting to access the data for some of these 255 columns it shows incorrect data and is splitting up the values incosistently.

如果我在Excel中打开CSV,让它截断的数据和重新保存它,我的导入工作正常。

If I open the CSV in Excel, let it truncate the data and re-save it, my Import works fine.

我的问题是,有其他人遇到这种限制与Jet.OLEDB提供商。如果是的话,是否有解决方法的问题?如果没有,有没有一个可以加载如此庞大的CSV的替代解决方案?

My question is, has anyone else encountered this limitation with the Jet.OLEDB provider. If yes, is there a workaround to the problem? If no, is there an alternative solution available that can load such a large CSV?

请注意:这不是一次性的任务,我需要提供最终用户提供一个浏览/上传按钮,执行此导入,当他们需要

Note: This is not a one off task, I need to provide an end user with a browse / upload button that performs this import as and when they need it.

推荐答案

我们已经使用的 HTTP://www.$c$cproject.com/KB/database/CsvReader.aspx 有很多成功

We've used http://www.codeproject.com/KB/database/CsvReader.aspx with much success.

这篇关于使用Microsoft Jet OLEDB的CSV列限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆