stjulian
2005-11-09 20:16:59 UTC
I am getting an error in a program written in VB6 when connecting to a VFP
free table directory. It works on the deveopment machine (XP Pro SP2) and
not on the server where the app is to run.
The (pertinent) code is as follows
Dim CONN As New ADODB.Connection
cnFox = "Driver={Microsoft Visual FoxPro Driver}; " _
& "SourceType=DBF;" _
& "SourceDB=c:\foxprodata;" _
& "Exclusive=No;" _
& "Collate=Machine;" _
& "NULL=NO;" _
& "DELETED=NO;" _
& "BACKGROUNDFETCH=NO"
CONN.ConnectionString = cnFox
This is where it fails with Error #-2147467259
The program references "Microsoft ActiveX Data Objects 2.8"
The Server is running "MDAC 2.8 RTM"
The Development machine is running "MDAC 2.8 SP1 on Windows XP SP2"
Neither one of these MDACs supposedly have a driver for FoxPro
The OLE DB Provider for Visual FoxPro 9.0 doesn't seem to be installed on my
development machine. And the ODBC drivers are different.
The "Microsoft FoxPro Driver" in the ODBC panel on the Server is not present
The "Microsoft FoxPro Driver" in the ODBC panel on the Development machine
reports version 4.00.6304.00
The "Microsoft Visual FoxPro Driver" in the ODBC panel on the Server reports
version 1.00.02.00
The "Microsoft Visual FoxPro Driver" in the ODBC panel on the Development
machine reports version 6.00.8167.00
The "Microsoft FoxPro VFP Driver" in the ODBC panel on the Server reports
version 1.00.02.00
The "Microsoft FoxPro VFP Driver" in the ODBC panel on the Development
machine reports version 6.00.8167.00
What (at the minimum) is needed to be installed on the server to allow this
to go through?
Julian
free table directory. It works on the deveopment machine (XP Pro SP2) and
not on the server where the app is to run.
The (pertinent) code is as follows
Dim CONN As New ADODB.Connection
cnFox = "Driver={Microsoft Visual FoxPro Driver}; " _
& "SourceType=DBF;" _
& "SourceDB=c:\foxprodata;" _
& "Exclusive=No;" _
& "Collate=Machine;" _
& "NULL=NO;" _
& "DELETED=NO;" _
& "BACKGROUNDFETCH=NO"
CONN.ConnectionString = cnFox
This is where it fails with Error #-2147467259
The program references "Microsoft ActiveX Data Objects 2.8"
The Server is running "MDAC 2.8 RTM"
The Development machine is running "MDAC 2.8 SP1 on Windows XP SP2"
Neither one of these MDACs supposedly have a driver for FoxPro
The OLE DB Provider for Visual FoxPro 9.0 doesn't seem to be installed on my
development machine. And the ODBC drivers are different.
The "Microsoft FoxPro Driver" in the ODBC panel on the Server is not present
The "Microsoft FoxPro Driver" in the ODBC panel on the Development machine
reports version 4.00.6304.00
The "Microsoft Visual FoxPro Driver" in the ODBC panel on the Server reports
version 1.00.02.00
The "Microsoft Visual FoxPro Driver" in the ODBC panel on the Development
machine reports version 6.00.8167.00
The "Microsoft FoxPro VFP Driver" in the ODBC panel on the Server reports
version 1.00.02.00
The "Microsoft FoxPro VFP Driver" in the ODBC panel on the Development
machine reports version 6.00.8167.00
What (at the minimum) is needed to be installed on the server to allow this
to go through?
Julian