原来没用过DBF数据库,想用ADO直接连,不想用ODBC和BDE,怎么连?
在网上看了下,由如下写法:
 adoConnection1.ConnectionString:='Provider=MSDASQL.1;Extended Properties="Driver={Microsoft Visual Foxpro Driver};SourceType=DBF;SourceDB=d:\cx\item.dbf"';
或者
adoconnection1.ConnectionString:=
'Provider=Microsoft.Jet.OLEDB.4.0;'+
'Data Source='+'''item.dbf'''+';Extended Properties=dbase 5.0;'
都不行,现在用的是delphi2010,能直接连吗?