Miha
Thu Jan 22 07:21:02 CST 2004
Hi,
See this thread
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=ivkblu05hqdqosre0d18butjdfrmnpc400%404ax.com&rnum=3&prev=/groups%3Fas_q%3Dtext%2520file%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-8%26as_ugroup%3D*adonet*%26as_uauthors%3Dpaul%2520clement%26lr%3D%26hl%3Den
Basically you should use OleDb provider to read from text file.
It should be faster.
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"michael" <michael@hockstein.org> wrote in message
news:1FB3BBD3-4BD1-4458-B5C8-3C04D438D9F6@microsoft.com...
> I have a large(1.25M), fixed field delimited, text file which I want to
read into a DataSet. So, I opened a StreamReader, read a line, assigned the
values to a new DataRow, and finally added the DataRow to a DataTable in the
DataSet. Seemed to be a staight forward task but boy did it progress at a
snail's pace!
>
> So I tried to speed things up by first importing the data from the text
file into SQL Server. To my amazement, the text import went like lightning!
How can I get lightning fast text import?
>
> Michael