查了一下http://www.connectionstrings.com/网:
自由表连接字符串为:
"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general"
但何处体现abc.dbf?到底该怎样写?谢谢!
自由表连接字符串为:
"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general"
但何处体现abc.dbf?到底该怎样写?谢谢!
http://blog.csdn.net/chengking/archive/2005/10/14/504078.aspx
conGoodDay.Open("Driver={Microsoft Visual FoxPro Driver};"+
"SourceType=DBC;"+"SourceDB=c:a.dbc;"+"Exclusive=No;");
在 ConnectionString 中未指定 OLE DB 提供程序。示例为:“Provider=SQLOLEDB;”。
我的连接字符串是
string cons = "Driver={Microsoft Visual FoxPro Driver};"+ "SourceType=DBF;"+"SourceDB="+filename+";"+"Exclusive=No;";