Re: Need ODBC driver for DBF files for VISTA
- From: DK <dwesley@xxxxxxxxxxxxx>
- Date: 2 May 2007 08:45:06 -0700
On May 2, 8:34 am, "Cindy Winegarden" <c...@xxxxxxxxxxxxxxxxxxx>
wrote:
Hi DK,
Can you use the FoxPro and Visual FoxPro OLE DB data provider, downloadable
from the link below my signature? It is fully compatible with all versions
of Fox tables and works with Windows Vista.
Also, your connection string is incorrect. If a DBC is present you should
point your connection string toward it ("Provider=VFPOLEDB.1;Data
Source=C:\Temp\MyDBC.dbc;"). A DBC file is a database container and contains
metadata, including the names of the DBFs it contains. If a DBC is not
present, which is probably the case for you, then you should point your
connection string toward the directory where the DBFs are
("Provider=VFPOLEDB.1;Data Source=C:\Temp\;"). In your SQL string you will
refer to the DBF itself by name and without the DBF extension, such as
"Select * From myTable".
As far as the Fox OLE DB data provider goes, it hasn't been updated since
VS6 and will not be tested or updated to work with Windows Vista. There was
a special version that came with Windows 2000 and Win2K would not allow you
to install the 6.01.8629.01 version, which was the final one. I don't know
if that is the case with Vista, and I'm not near my Vista machine to test an
install with that version.
--
Cindy Winegarden
c...@xxxxxxxxxxxxxxxxxxx
VFP OLE DB:http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC:http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx
"DK" <dwes...@xxxxxxxxxxxxx> wrote in message
news:1178049874.011840.118180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On May 1, 2:16 pm, Paul Clement
I have this one DBF file that for whatever reason cannot be read using
the OLEDB driver.
The connection string being passed is:
Driver=Microsoft Visual FoxPro
Driver;UID=;PWD=;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;SourceDB=c:
\datafile.dbf
The open statement works perfectly fine with VB6 under XP but fails
when run under VISTA.
The ODBC driver that comes installed with VISTA is version 1.00.02.00
dated 11/2/2006 the one on the XP machine is version 6.01.8629.01
dated 12/7/1999.
You have any idea why the OPEN might fail with an error that says that
function is not supported.
The open statements look like this:
On Error GoTo dberrorDBF
Set cnnDBF = New ADODB.Connection
With cnnDBF
.ConnectionString = ConnectDBF
.Open
End With
The error gets trapped in dberrorDBF.
But the original question was due to the fact that the VFPODBC.MSI
will not run with VISTA.
If version 6....... is the latest then what is the version that's on
the Vista machine?
One interesting thing I've found is that I have both a dotnet 1.1 and
a VB6 program that reads the same DBF file, the dotnet program can
succesfully use the VFPOLEDB provider but the VB6 program has to use
the VFPODBC provider for the same file (if it tries to use the OLEDB
provider it gets an immediate end of file).
.
- References:
- Need ODBC driver for DBF files for VISTA
- From: DK
- Re: Need ODBC driver for DBF files for VISTA
- From: Paul Clement
- Re: Need ODBC driver for DBF files for VISTA
- From: DK
- Re: Need ODBC driver for DBF files for VISTA
- From: Cindy Winegarden
- Need ODBC driver for DBF files for VISTA
- Prev by Date: Re: Need ODBC driver for DBF files for VISTA
- Next by Date: Multiple recordsets?
- Previous by thread: Re: Need ODBC driver for DBF files for VISTA
- Next by thread: Multiple recordsets?
- Index(es):
Relevant Pages
|