【发布时间】:2014-02-03 07:24:57
【问题描述】:
我正在尝试在我的C# windows 应用程序上将数据从 sheet1.xls 文件通过 Visual Studio-2008 中的 oledb 连接获取到 sqlserver2005,我正在使用 windows7 操作系统,但我没有在我的系统上安装 excel .
这是我的连接字符串:
string excelconnectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +excelfilepath + ";"+"Extended Properties='Excel 8.0;HDR=Yes;'";
我尝试了很多方法,但仍然出现此错误:
"External table is not in the expected format. "
请帮帮我。
【问题讨论】: