I see your point about the size. I didn't clearly see the "M" of "Mbyte" in
the original post. ( :< )
I've done a similar thing with an IDataReader, but will check your link as
well.
You can always learn a different approach if you just try.
Just for the record, I have done (up to 4MB) files with my approach.
The "similar" thing I've mentioned, I've done an IDataReader, and every 1000
records (or whatever N Number), I create a DataSet/Xml and ship it off.
I reserve this approach when I have VALIDATION business rules on the data in
the IDataReader.
Aka, a "non dumb" data importer. And I save off the problem records as
well.
But the more ways the merrier.
"Marc Gravell" <ma**********@gmail.comwrote in message
news:f1**********************************@l32g2000 hse.googlegroups.com...
>Bulk Insert using Xml is my favorite tool of choice.
100Mb? yikes!
Anyway, the fake IDataReader is SimpleDataReader from the following:
http://groups.google.com/group/micro...c7a20056ffe8e1
You simply need to provide an implementation (just a few lines of
code). In my example (XmlDataReader), it reads lines from an xml file
- but instead you'd override DoRead to read the next line from your
DOS file, and then call SetValues() and return true; if you find you
have got to the end of the file, return false instead.
(note that in the constructor, you need to tell the base-class the
names and data-types of the columns)
Job done ;-p
Marc