我使用 ado 来访问 vfp 的数据库对于 自由表,没有任何问题!
但是对于已经添加至 dbc 数据库中的 dbf 文件
系统提示错误!

解决方案 »

  1.   

    好久没使用VFP了,不过可以帮你UP对了,不知楼主用BDE试过没有,看是否存在同样的问题
      

  2.   

    错误提示如下:外部数据库驱动程序(8715)中的意外错误!我连接数据库的连接字符串为:ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;'+
                          'Data Source='+PathSource+';'+
                          'User ID=Admin;Password=;Extended properties=dBase 5.0;Persist Security Info=False';
      

  3.   

    VFP版本?到MS的网站下载MDAC2.7SP1试试
      

  4.   

    在网上查找 ado 连接 dbf 数据库的方法
    全部都是指 freetable 的情况好像没人提及 dbc 的情况,难道大家都没碰到过类似问题?
      

  5.   

    adoconnection:=
    Provider=MSDASQL.1;Persist Security Info=False;Data Source=Visual FoxPro Database
      

  6.   

    我看 WWWWA 兄的连接字符串,怎么感觉不对?
      

  7.   

    以上为ODBC
    Provider=VFPOLEDB.1;Data Source=D:\rsc\qqzz.DBC;Password="";Collating Sequence=MACHINE 为ADO
      

  8.   

    我用VFP7,用ODBC、ADO连接无问题,但是用Microsoft.Jet.OLEDB.4.0
    是不能连通的。
      

  9.   

    ODBC Driver for Visual FoxPro 
      
    With a database container:oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _
              "SourceType=DBC;" & _
              "SourceDB=c:\somepath\mySourceDb.dbc;" & _
              "Exclusive=No;" Without a database container (Free Table Directory):oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _
              "SourceType=DBF;" & _
              "SourceDB=c:\somepath\mySourceDbFolder;" & _
              "Exclusive=No;" 
    For more information, see: Visual FoxPro ODBC Driver and Q165492
    ============================
    我找到了 odbc 连接 foxpro 的方法
      

  10.   

    有问题了,我使用 odbc 来进行连接,连接字符串为:Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+pathsource+';Extended Properties=dBase 5.0;Persist Security Info=False错误提示为:找不到安装不到的 ISAM