求ODBC连接Excel 2007的连接字符串
小弟现在正在弄ODBC连接Excel 2007,可是连接字符串始终出现问题,我的连接字符串如下:
OdbcConnection odbcConn = new OdbcConnection(@"Driver={Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)}; DBQ=E:\App\Work\testCxpHomeMatrixSpec7-List.xlsx");
"E:\App\Work\testCxpHomeMatrixSpec7-List.xlsx"
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
OleDbConnection oledbConn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + @"testCxpHomeMatrixSpec7-List.xls" + ";" + "Extended Properties=\"Excel 8.0;HDR=No;IMEX=1\"");