Basically I have a C# Desktop application that uploads data from txt/csv files into a database. I do something like:
OdbcConnection conn;
conn = new OdbcConnection(strConnString.Trim());
conn.Open();
sql_select = "select * from [" + this.csvFilePath.Trim() + "]";
The idea is to let the user decide what the delimiter will be, like ";" or "," or "#", or whatever..
So when the delimiter is anything besisdes ",", the application runs fine...but when I choose to use it, I get an error telling me that the field delimiter coincides with the decimal delimiter.
The thing is that in my location the delimiter for decimal is ",". I found out that changing the decimal delimiter on the Control Panel for "." instead of "," gets the application to work.
My question is, is there any way make the application set the default delimiter?