I need some more info. The quickest way to get the data into SQL server
is using a DTS package, which you can create ahead of time, but then
execute from VB.Net code. You can also use a CSV parser like the one I
sell,
http://www.csvreader.com , to loop over each line in the CSV
files and do whatever with them, import them, convert them, etc. Both
of these methods might have issues with the custom delimiter depending
on how custom it is. Neither methods handle crazy delimiters I've seen
like <!> or !#! type stuff, so in that case, depending on your data,
you may have to run a raw conversion run over the file first before
attempting to import.
[quoted text, click to view] Kerr wrote:
> Hi all,
> Using VB.NET i have a collection of 12 fairly large (largest file is
> 100MB) CSV files. I have a SQL Server data structure that mimics the
> structure of these csv files. I need a method in code of getting the
> data from these CSV files into my SQL Server.
>
> Slight addition to this problem is that these files are not using pure
> comma delimiters. They have a custom delimiter so I need code in which I
> can specify a delimiter.
>
> Any help on this would be appreciated.
>
> Cheers
>
> Kerr
>
>
> *** Sent via Developersdex
http://www.developersdex.com ***