PaulHInstincticve
Programmer
I think I may have got a little left behind here. I have been trying to implement my app on some new web sites recently and I think it is not working because VFP ODBC drivers are no longer supported in the latest operating systems in favour of OLE DB technology. Can anyone confirm that my thoughts, after some quick reading, are correct and if so where can I check syntax for my replacement connection string and what error message would I get if the drivers are not yet installed on the ISPs server?
I was previously using VFP ODBC drivers using a connection string
con.OPEN("DRIVER=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=c:\data\myapp\;Exclusive=NO;BackGroundFetch=NO;NULL=NO;Collate=MACHINE")
This seemed to work for ISPs running Windows 2000 servers but ISPs running Windows 2003 had to be asked each time to reinstall their VFP ODBC drivers before it would work. The usual give away was the error message
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Driver does not support this function
Asking the ISP to reinstall ODBC drivers until now has worked but upon further reading it seems that OLE DB is the technology that has replaced ODBC since VFP 6 and really I should be using that now instead of ODBC - is this correct? If it is correct, apart from the connection string is everything else pretty much compatible with what I was doing with ODBC (simple SQL select, delete and update that's all)?
If I convert to OLE DB, can I assume that that will already be installed on Windows server 2003 and above?
I have tried the following connection string as per an example I found on the web
con.OPEN("Provider=vfpoledb.1;Source=c:\data\myapp;Collating Sequence=general")
This generates the error
Microsoft OLE DB Provider for Visual FoxPro error '80004005'
Feature is not available.
Is this error a connection string syntax error or might the driver not be installed? Can anyone link me to syntax for other connection string options, how do I for example turn deleted records off as I did with the ODBC connection string? Many thanks
Paul
I was previously using VFP ODBC drivers using a connection string
con.OPEN("DRIVER=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=c:\data\myapp\;Exclusive=NO;BackGroundFetch=NO;NULL=NO;Collate=MACHINE")
This seemed to work for ISPs running Windows 2000 servers but ISPs running Windows 2003 had to be asked each time to reinstall their VFP ODBC drivers before it would work. The usual give away was the error message
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Driver does not support this function
Asking the ISP to reinstall ODBC drivers until now has worked but upon further reading it seems that OLE DB is the technology that has replaced ODBC since VFP 6 and really I should be using that now instead of ODBC - is this correct? If it is correct, apart from the connection string is everything else pretty much compatible with what I was doing with ODBC (simple SQL select, delete and update that's all)?
If I convert to OLE DB, can I assume that that will already be installed on Windows server 2003 and above?
I have tried the following connection string as per an example I found on the web
con.OPEN("Provider=vfpoledb.1;Source=c:\data\myapp;Collating Sequence=general")
This generates the error
Microsoft OLE DB Provider for Visual FoxPro error '80004005'
Feature is not available.
Is this error a connection string syntax error or might the driver not be installed? Can anyone link me to syntax for other connection string options, how do I for example turn deleted records off as I did with the ODBC connection string? Many thanks
Paul