I have inherited an application written in C# which reads a CSV file and stores the data in database. I've noticed that when a value in the CSV file is this particular string "F1" the application saves it in the DB as "1", omitting the alphabet part of the string.
I am using OleDbDataReader to read the CSV like below. Can anyone see what's causing this?
using (OleDbDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
currentVar.PortalID = reader.GetValue(16).ToString();
}
}