instead it reading as " alone.
eg: "1234" means it reading as "
string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strPath + ";Extended Properties='text;HDR=Yes;FMT=Delimited'"; OleDbConnection sconn = new OleDbConnection(connection); OleDbCommand command = null; OleDbDataAdapter da = null; SqlConnection sConn = conn.GetConnection(); SqlCommand com = null; query = "select column1,column2 from [" + dirname + "]"; command = new OleDbCommand(query, sconn); command.Connection.Open(); da = new OleDbDataAdapter(command); da.Fill(ds); sconn.Close();
in my csv file column1 field has value like ="2012"
but in dataset column1 is taken as = alone. I want to read the whole string.
Please anyone help to fix this.
thanks in advance.