Zeroes ommitted in the ID column
I have csv file that if I open it using EXCEL file, it ommitted the zeroes at the begginning of the text whereas if I am going to view using notepad, the ID is correct. For example, the value of the ID is 000102233, if I am going to view it using Excel it displays as 112233, which is also the value that my program gets if I extract it from the csv file and store it to database. How am I going to deal with it?

Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 5, 2012, 7:21 PM EDT
boycoto132 reputationPosted Aug 5, 2012, 8:29 PM EDT
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 5, 2012, 8:44 PM EDT
Provider=Microsoft.ACE.OLEDB.12.0;
Data Source=c:\path\to\myfile.xlsx;
Extended Properties=\"Excel 12.0 Xml;IMEX=1\";
The IMEX=1 extended property tells Excel to treat intermixed data as text.
boycoto132 reputationPosted Aug 5, 2012, 9:44 PM EDT