用这个吧,肯定能够连上,我刚刚做的。注意“Extended Properties=Excel 8.0;”一定不
能漏掉,当然可以换成其他的版本。
Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;
Data Source=C:/My Documents/Book1.xls;Mode=Share Deny None;
Extended Properties=Excel 8.0;Persist Security Info=False;
Jet OLEDB:System database="";Jet OLEDB:Registry Path="";
Jet OLEDB
atabase Password="";Jet OLEDB:Engine Type=35;
Jet OLEDB
atabase Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;
Jet OLEDB
on't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=Fal