我使用以下方式连接到单个的DBF文件
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+@path+";Extended Properties=dbase 5.0"
当一个dbf被vfp6.0打开过后再关闭,它应无法再连接上了.(提示外部表不是预期的格式)
当将此表在VFP6.0中导出为DBASE IV格式后又能读取.
这个问题如何解决请高手支招

解决方案 »

  1.   

    换个连接字符串看看  http://www.connectionstrings.com/standard:"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\folder;Extended Properties=dBASE IV;User ID=Admin;Password=" Database container (.DBC):"Provider=vfpoledb.1;Data Source=C:\MyDbFolder\MyDbContainer.dbc;Collating Sequence=machine"  Free table directory:"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general"  Force the provider to use an ODBC DSN:""Provider=vfpoledb.1;DSN=MyDSN"" 
      

  2.   

    使用这个连接提示相同的信息
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\folder;Extended Properties=dBASE IV;User ID=Admin;Password="