查了一下http://www.connectionstrings.com/网:
自由表连接字符串为:
"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general" 
但何处体现abc.dbf?到底该怎样写?谢谢!

解决方案 »

  1.   

    数据库连接字符串集合:
    http://blog.csdn.net/chengking/archive/2005/10/14/504078.aspx
      

  2.   

    连接Visual FoxPro
      conGoodDay.Open("Driver={Microsoft Visual FoxPro Driver};"+
      "SourceType=DBC;"+"SourceDB=c:a.dbc;"+"Exclusive=No;");
      

  3.   

    我按照三楼的方法去做提示以下错误信息
    在 ConnectionString 中未指定 OLE DB 提供程序。示例为:“Provider=SQLOLEDB;”。
    我的连接字符串是
    string cons = "Driver={Microsoft Visual FoxPro Driver};"+ "SourceType=DBF;"+"SourceDB="+filename+";"+"Exclusive=No;";