Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access FoxPro?

Status
Not open for further replies.

laurax

Programmer
Aug 3, 2005
7
CA
HI all,
I never used FoxPro before. I need to read data from FoxPro 2.6 tables and save them to Oracle database.
Will a java program work? or I must write Windows application?
what kind of driver I need to access the FoxPro? ODBC driver? where can I find the driver?

too many questions..

Thanks a lot.

 
I don't know what sort of import capabilities oracle has, but you can export fox tables in many different formats, such as comma delimited, Excel, and so on.
Look up the COPY TO command.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
As far as I know Oracle has SQL*Loader, an utility to import text files into Oracle tables, which could be used to read the file produced by the COPY TO command. I would do the following:

USE yourTable
COPY TO yourTable.txt DELIMITED WITH TAB

and then import yourTable.txt with SQL*Loader. If you don't have FoxPro, you could open the table with Excel and save it as a text file delimited with tabs.
 
Hi Thanks for your answer,

I don't want to dump all the data from FoxPro to Oracle. So I have to read some data from FoxPro table and process it and save it to Oracle DB.

I tried sun jdbc-odbc driver. It seems working fine. But with this free solution, the FoxPro DBF files have to be shared on the network (in the same windows domain I suppose)
Because there is no dedicated database server for FoxPro. I have use Window's file sharing machanism for remote access.

Does anybody know better method?

 
You pretty much have one of the few solutions available - ODBC.
Foxpro tables aren't like Oracle or SQL databases as you know them, they are basically flat text files containing a 'header' record consisting of the structure of the table, the fields' and records' sizes, and pointers to the beginning of data.
So yes, you have to use Window's file sharing mechanism to use them, no matter which ODBC driver you use.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Thanks Dave,

Can I connect to Oracle database from FoxPro 2.6? ( I know Visual FoxPro have functions like SQLStringConnect(), but I am not sure about FoxPro 2.6)
Where can I find some tutorail for FoxPro 2.6?

Thanks

 
To use FoxPro 2.x to connect to other back-ends, you need the FoxPro Connectivity Kit. If you don't already have it, I'm not sure where you'd get it today (given that FoxPro 2.6 shipped in 1992).

Tamar
 
Various versions of FoxPro pop up on eBay. I have bought several copies of VFP 3.0 & FP 2.6 for under $20 for complete unopened legit copies, mostly to get new manuals to replace my dog-ear ones. Have ebay email you when something is listed.l
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top