As a part of a test, I try to access VFP Tables through ODBC.
Here is what I do:
o I create a System DSN using "Microsoft Visual ForPro Driver" 2.00.8167.00,
VFPODBC.DLL
o Set the Data Source Name as "mailw"
o Set the Database Type as Visual FoxPro database (.DBC)
o and the path as: "c:\MyApps\Mailw2000\mailw2000.dbc"
Trying:
SQLConnect("mailw")
I get -1 (failure)
If instead, I create the same as above, using "Free table directory" instead
of .DBC
and set the pasth to: "c:\MyApps\Mailw2000"
SQLConnect("mailw") returns a conection handler.
But truing to select data from existing table in the directory, I get -1
again.
h=SQLConnect("mailw")
? SQLExec(h, 'Select * from Names')
Can someone help me?
I tried with Oracle and MySQL, through ODBC and I get no errors.
What do I do wrong with VFP ?
Demetrios, Greece