I have a csv file from which I have to populate different tables in database
I am using Microsoft.Jet.OleDb.4.0 to convert csv file to data table from where I proceed forward
the problem is when I do this a value such as “0261” is stored as 261, the leading zero is dropped, is there a way to prevent it???
Thanks in advance…
If you store the value as a number, then there is no way to prevent it. All you can do is format the number in a report with leading zeros.
Another option is to store the number as four letter string (
char(4)).