Error External table is not in the expected format

前端 未结 1 1203
终归单人心
终归单人心 2021-01-22 03:47

I am trying to get data to sqlserver2005 on my C# windows application, from sheet1.xls file through oledb connection in visual studio-2008 and I am usi

相关标签:
1条回答
  • 2021-01-22 04:15

    Use Microsoft.ACE.OLEDB.12.0 for excel files

    string excelconnectionstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +excelfilepath + ";"+"Extended Properties="Excel 12.0;HDR=Yes";
    

    connectionstrings

    0 讨论(0)
提交回复
热议问题