[02/03] Dataadapter fill method
Hi,
I am reading a csv file with using the following code
Code:
string selectSql = "SELECT * FROM ["+ fileName +"]";
OleDbDataAdapter da = new OleDbDataAdapter(selectSql,conn);
DataSet ds = new DataSet("UItems");
da.Fill(ds);
My csv contains various coulmns along with a phone column, I get the following error :
Code:
Not a legal OleAut date
when the phone number entered is: 00-0000-00001
The error occurs when the .fill method is called for the dataAdapter. But surprisingly when the compile the exe and run it wont it give me this error.
The error comes up only in the case of debug mode.
:sick: