T
tshad
I have a program that is reading a csv file into a dataset. I want it to
read the 1st line as data. But it ignores it.
I have the Connection set up as:
OleDbConnection csvConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
csvPath + ";Extended
Properties=\"Text;HDR=Yes;FMT=Delimited\"");
or
OleDbConnection csvConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
csvPath + ";Extended
Properties=\"Text;HDR=No;FMT=Delimited\"");
Either way (with HDR set to Yes or No), it doesn't read the 1st line.
Is there something else I need to do to get it to read that line?
I am reading it as:
da = new OleDbDataAdapter("Select * from " +
strFile,csvConnection);
da.Fill(ds);
Thanks,
Tom
read the 1st line as data. But it ignores it.
I have the Connection set up as:
OleDbConnection csvConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
csvPath + ";Extended
Properties=\"Text;HDR=Yes;FMT=Delimited\"");
or
OleDbConnection csvConnection = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
csvPath + ";Extended
Properties=\"Text;HDR=No;FMT=Delimited\"");
Either way (with HDR set to Yes or No), it doesn't read the 1st line.
Is there something else I need to do to get it to read that line?
I am reading it as:
da = new OleDbDataAdapter("Select * from " +
strFile,csvConnection);
da.Fill(ds);
Thanks,
Tom