I have been trying to access 2016 MS Excel file using C#, but connection string is working only till 2013 MS Excel.
My current connection string:
This worked for me:
private string ExcelConnection(string fileName) { return @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + fileName + ";" + @"Extended Properties=" + Convert.ToChar(34).ToString() + @"Excel 8.0" + Convert.ToChar(34).ToString() + ";"; }