- public static string fileName = string.Format("{0}\\Book502", Directory.GetCurrentDirectory());
- string connection = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;" + "Data Source={0};Mode=ReadWrite;Extended Properties='Excel 12.0 Xml;HDR=YES'", fileName);
my file book 502
have two sheets
sheet 1
i insert data and update and read data from it
it have following column
ID INTEGER
User Name char(255)
Country char(255)
sheet 2
have following columns
ID INTEGER
Member Name char(255)
meaning all two sheets have text except ID
ALSO file have column in header
processes of two sheets insert update read select
size of transaction i will use 5000 rows
3 USER will use excel sheet
so that what correct format to excel file ?
the format i write working good ?
but really i need what i assign IMEX=0 or 1 or 2
HDR = YES OR NO

Sourabh SomaniRank #37 · 35.5K reputationPosted Feb 28, 2017, 1:45 AM EST
Sourabh SomaniRank #37 · 35.5K reputationPosted Feb 28, 2017, 1:58 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 28, 2017, 12:10 AM EST
Sourabh SomaniRank #37 · 35.5K reputationPosted Feb 28, 2017, 1:53 AM EST
ahmed salah100 reputationPosted Feb 28, 2017, 1:23 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 28, 2017, 1:50 AM EST