Acually I dont want it through code.
Main Topics
Browse All TopicsI have a DBF file. I what to know what are the column names in the table, its data type( like char, datetime, etc) and its length. etc.
I have Excel 2007 and ms access. I dont have foxpro or any other tool. Is is posible to know what is description of the table in that DBF file?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Neither Excel nor Acces can give you what you need... But you may use some freeware which will provide much more than you need. Try e.g. DBF Viewer Plus 1.50 http://www.alexnolan.net/s
As I remember, DBF View did allow you to 'view' a DBF table, but it did not offer any way to get the schema lay-out of the tables.
"Acually I dont want it through code"
If you don't want to program and you cannot get the info in another manner, then you can always hire a VFP consultant who could get the info and create a schema document for you.
Good Luck
Several different programs are called DBF View. The Total Commander's plug-in called DBF View does not show the structure but this one does it: http://www.dbfview.com/
As you still seem to wait for a better answer, let me conclude for you:
With Access or Excel there is support for DBF files, but only older formats (dBASE mostly) . DBFs have evolved since the 80s, VFP9 is the last version, but is reflecting the state of 3rd quarter 2007, as the last SP2 was released. DBFs support the needed fieldtypes for SQL Server 2005 and accessing SQL 2008 is alos no problem.
Excel and Access stopped supporting newer DBF file versions much earlier(!)
So you have two choices now: Either begin a little programming from inside Access - you'll most likely have success in retreiving the DBF structure with ADOX.Catalog - or use a DBF Viewer, eg the one pcelba suggests.
Bye, Olaf.
Business Accounts
Answer for Membership
by: Olaf_DoschkePosted on 2009-07-27 at 01:02:02ID: 24949552
What you'd typically have as the result of a query, no matter if by ODBC or OLE DB Provider, is a Recordset. Recordsets offer the field names and field types like this, if rs is a variable holding a recordset:
s/detpg_li stdb/
? rs.fieldcount
? rs.fieldname(1)
? rs.fieldtype(1)
...
So if you Select * from atable you can get that info. To get a list of tables you either simply look at the directory.
More generally you can use the OpenScheme() method of an ODBC Connection or the ADOX.Catalog object via an adodb.connection with the VFP OleDB Provider, see here: http://www.motobit.com/tip
Bye, Olaf.
Select allOpen in new window