I'm very new to vb.net although fairly experienced in SQL. I'm trying to find a quick and robust way of reading the contents of a csv file into a SQL table so my first question is simply, Can it be done?
I've so far user IO.File.ReadAllText to read the contents of the file into a variable, now I need to know how to get the contents of that variable to do something useful.
--------------------------------------------------------------------------------- http://www.mannyroadend.co.uk A Bury FC supporters website and forum
There's also the bcp utility and the BULK INSERT command. Unless you have to deal with embedded quotes, commas, or line feeds, these are typically easier and faster to import.