• Foxpro数据库连接错误解决方法--【VFP DBF文件不是一个有效的路径。 确定路径名称拼写是否正确,以及是否连接到文件存放的服务器】


    直接访问vfp dbf文件时报错:

    错误描述: 'd:vfpData est.dbf'不是一个有效的路径。 确定路径名称拼写是否正确,以及是否连接到文件存放的服务器。

    解决办法:Data Source=目录!!!!!!(d:vfpData)

    (1)------------------------------------------------------------------------------------------------

    Microsoft Jet OLE DB 4.0

    (2)------------------------------------------------------------------------------------------------
    Hi Abhay,

    I recommend that you use the OLE DB data provider for FoxPro and Visual
    FoxPro.

    There are two formats that the connection string should take, depending on
    what data you have.

    For FoxPro "free" tables use just the path to the directory where the DBFs
    are: "Provider=VFPOLEDB.1;Data Source=C:Temp;"
     Note that the Data Source is
    not in quotes it's delimited bye the equal sign and the semicolon. When you
    want to work with a specific table you'll specify it in your SQL string:
    strSQL = "Select * From SomeTable" (Table is C:TempSomeTable.dbf)

    For Visual FoxPro tables that belong to a "Database Container" you need to
    specify the DBC in the connection string: "Provider=VFPOLEDB.1;Data
    Source=C:TempMyDBC.dbc;" If a DBC file is present with the DBFs then use
    this format, otherwise use the free table format. Again refer to a specific
    table in your SQL command: strSQL = "Select * From SomeTable"

    ========================================================

  • 相关阅读:
    DP 水题 最长不下降子序列
    数的划分
    水题------纪念品分组
    NY95 众数问题
    NY86 找球号(一)
    C3-Zexal的矩阵链乘
    C3-Zexal的多路流水线调度
    C4-Zexal的食物链
    C4-排列
    C3-炮弹杀伤力
  • 原文地址:https://www.cnblogs.com/SummerRain/p/3587535.html
Copyright © 2020-2023  润新知