I've got a legacy collection of DBF
, FPT
and CDX
files left from file organizing software. Judging from CDX and FTP suffixes, I presume it is a Visual FoxPro database. From the first glance into DBF file, it looks like it has field descriptors there. I'd like to examine what data stored there and use or extract any useful stuff.
00000000: 31 0B 06 0E-2F 00 00 00-08 02 28 01-01 00 00 01 1/ (
00000010: 00 00 00 00-00 00 00 00-00 00 49 40-01 7F 00 00 I@
00000020: 4E 41 4D 45-00 00 00 00-00 00 00 43-01 00 00 00 NAME C
00000030: FF 00 00 00-00 00 00 00-00 00 00 00-00 00 00 00
00000040: 43 41 54 5F-52 4F 4F 54-49 44 00 42-00 01 00 00 CAT_ROOTID B
00000050: 08 00 04 00-00 00 00 00-00 00 00 00-00 00 00 00
00000060: 50 52 4E 54-5F 49 44 00-00 00 00 42-08 01 00 00 PRNT_ID B
00000070: 08 00 04 00-00 00 00 00-00 00 00 00-00 00 00 00
00000080: 41 54 54 52-49 42 53 00-00 00 00 49-10 01 00 00 ATTRIBS I
00000090: 04 00 04 00-00 00 00 00-00 00 00 00-00 00 00 00
000000A0: 49 53 5F 45-58 43 4C 55-44 45 00 49-1A 01 00 00 IS_EXCLUDE I
000000B0: 04 00 04 00-00 00 00 00-00 00 00 00-00 00 00 00
000000C0: 43 41 54 5F-49 44 00 00-00 00 00 42-1E 01 00 00 CAT_ID B
000000D0: 08 00 0C 00-00 00 00 00-00 00 00 00-00 00 00 00
000000E0: 54 53 00 00-00 00 00 00-00 00 00 37-26 01 00 00 TS 7&
000000F0: 08 00 14 00-00 00 00 00-00 00 00 00-00 00 00 00
What I tries so far:
upgrading out-of-box Windows 7 ODBC driver stub to version 6.01.8629.01
creating User DNS as "Free Tables Directory" and pointing its path to the file collection
no tables are listed for that OBDC DNS in variety of tools, like SQL Explorer and SQL Server Import/Export Wizard.
manual attempt to
SELECT * FROM
any DBF file gives me[Microsoft][ODBC Visual FoxPro Driver]Not a table.
error.
Also, I tried:
- creating BDE alias with FOXPRO driver
- opening any of DBF files in Database Desktop
Both attempts to open a table resulted in Corrupt table/index header.
error.
Also, I just tried tDBF component but it looks abandoned and loaded with Kylix Libc
dependencies thus not compiles in Delphi w/o fixing that.
Tons of questions:
- How do I confirm what files are really Visual FoxPro?
- Does symptoms described above indicate real data corruption or just incompatibility/misconfiguration?
- And finally, how to use something modern to access tables and start examining data?