i am using the following code to convert an excel set of data on a worksheet to a C# dataTable:
var connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + _filename + ";Extended Properties=\"Excel 12.0;HDR=YES\";");
var adapter = new OleDbDataAdapter("SELECT * FROM [owssvr$]", connection);
connection.Open();
var ds = new DataSet();
adapter.Fill(ds);
connection.Close();
return ds.Tables[0];
This seems to work fine but when i loop through the dataTable to extract value out, i have one field that is about 400 characters and i when i grab it from the datatable i only see the first 255 characters.
Is there any way i can import this from excel with out this character limit?