I have a CSV file, I use SCHEMA.INI file to structure the import of the .csv file.
I have some problem in Phone number field, Customer upload the phone number with (06)1234565, so i choose Text field in SCHEMA.ini file.
When i convert my csv to datatable the Phone number field will convert like 4.32E+12, Original Phone number is 4320000000000.
Also in Schema.ini i tried Memo, Char Width 20, etc,. Exponent form not converted.
How can i convert to original format ?
string FileName = Path.GetFileName(FilePath);
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + folderpath + ";" + "Extended Properties=\"text;HDR=YES\"";
OleDbConnection Conn = new OleDbConnection();
Conn.ConnectionString = strConn;
Conn.Open();
string s1 = "select * from [" + FileName + "]";
OleDbDataAdapter da1 = new OleDbDataAdapter(s1, Conn);
DataSet dtall = new DataSet();
da1.Fill(dtall);
Conn.Close();
In Datatable the phone number should be value not in Exponent form.
Any help Much appreciated, Many Thanks.