Hi @Dinesh Kalva
I guess changing the query from
"select * from [" +sheetname+"]"
to
"select *,"+filename+","+sheetname+" from [" +sheetname+"]"
should work as filename is the variable you are storing the filename [string filename = file.Name;] and sheetname is the one which is holding the sheetname [sheetname = drSheet["TABLE_NAME"].ToString();]
Assuming that your table has filename column before sheetname.