将大型固定宽度文件导入DataTable的最快方法 [英] Fastest way to import large fixed width file into a DataTable
本文介绍了将大型固定宽度文件导入DataTable的最快方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Visual Studio 2005,.NET 2.0和VB.NET:
我正在寻找导入非常大的固定的最快方法
宽度文件(超过600万条记录和超过1.2 GB的文件大小)到一个
DataTable。
有什么建议吗?
Using Visual Studio 2005, .NET 2.0 and VB.NET:
I am looking for the fastest possible way to import a very large fixed
width file (over 6 million records and over 1.2 GB file size) into a
DataTable.
Any suggestions?
推荐答案
BostonNole,
一旦数据在数据表中,你打算做什么?
Kerry Moorman
" BostonNole"写道:
BostonNole,
What are you planning to do with the data once it is in a datatable?
Kerry Moorman
"BostonNole" wrote:
使用Visual Studio 2005,.NET 2.0和VB.NET:
我正在寻找最快的可能将一个非常大的固定
宽度文件(超过600万条记录和超过1.2 GB文件大小)导入到
DataTable中的方法。
有什么建议吗?
Using Visual Studio 2005, .NET 2.0 and VB.NET:
I am looking for the fastest possible way to import a very large fixed
width file (over 6 million records and over 1.2 GB file size) into a
DataTable.
Any suggestions?
目标是什么?
数据表应该保留多少用户真正需要的数据(不是整个数据库或表格的b $ b)。如果你想导入SQL Server,我宁愿看看
SqlBulkInsert功能(1.1中的外部,作为ADO.NET的一部分包含在2.0中的
)而不是使用数据表作为中间步骤...
-
Patrice
" BostonNole" < bo ******** @gmail.comaécritdansle message de news:
B2 *********************** *********** ... oglegroups.com ...
What is the goal ?
A datatable is supposed to hold as much data as a user really needs (not a
whole db or table). If you want to import into SQL Server I would rather see
the SqlBulkInsert capability (external in 1.1, included as part of ADO.NET
in 2.0) rather than using a datatable as an intermediate step...
--
Patrice
"BostonNole" <bo********@gmail.coma écrit dans le message de news:
b2**********************************...oglegroups.com...
使用Visual Studio 2005,.NET 2.0和VB .NET:
我正在寻找导入非常大的固定
宽度文件的最快方法(超过600万条记录和超过1.2 GB的文件大小)进入一个
DataTable。
有什么建议吗?
Using Visual Studio 2005, .NET 2.0 and VB.NET:
I am looking for the fastest possible way to import a very large fixed
width file (over 6 million records and over 1.2 GB file size) into a
DataTable.
Any suggestions?
我需要运行一些验证规则,格式化规则和业务
规则对数据,然后转储它是另一个文本文件。
I need to run some validation rules, formatting rules and business
rules against the data, then dump it out to another text file.
这篇关于将大型固定宽度文件导入DataTable的最快方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文