File format · .t44
dBASE IV Temporary (.TBK, .TMP) File Recovery & Repair
dBASE IV temporary files like .TBK memo backups and .TMP sort workspaces become orphaned after crashes. Learn how these files work and what data can be rec
When dBASE IV crashes mid-operation, it frequently leaves behind temporary files that can contain a surprising amount of valuable data. These orphaned files—often carrying extensions such as .TBK or .TMP—are not meant to be permanent, but they sometimes become the only surviving copy of records that were never flushed to the primary database. In this guide, our team explains what dBASE IV temporary files are, why they become orphaned, and what is realistically recoverable from them.
What dBASE IV Temporary Files Are
dBASE IV, released by Ashton-Tate in 1988 and later maintained by Borland, was a major revision of the dBASE database/language platform. Like most database management systems of its era, it relied on transient on-disk files to safely perform operations that exceeded available memory—sorting large tables, indexing, and staging bulk updates.
Two categories of temporary file are most commonly encountered by our recovery engineers:
- Memo backup files (
.TBK) — When dBASE IV opens a table that contains a memo field, the memo data is stored in an associated.DBTfile. During certain editing operations, dBASE IV creates a.TBKbackup of that memo file alongside the primary.DBFtable. Under normal operation, this backup is managed and cleaned up automatically by the database engine. - Workspace / scratch files (
.TMP) — Used duringSORT,INDEX,TOTAL, and similar commands. These files hold intermediate result sets before the final output table is written.
Because dBASE IV was designed for MS-DOS and early Windows environments, these files follow the 8.3 filename convention and are typically created in the current working directory rather than in a centralized system temp folder.
Structure and Key Technical Facts
The internal structure of a dBASE IV temporary file depends entirely on what the file was being used for at the moment it was orphaned:
.TBKfiles are structurally identical to dBASE IV.DBTmemo files. A.DBTconsists of a header block followed by numbered 512-byte blocks of text data. Each memo field in the.DBFtable points to a specific block number in the.DBT/.TBK. If the original.DBTis missing or truncated, a.TBKof the same name can often serve as a direct structural substitute..TMPsort/index workspaces may contain raw record data in dBASE's internal record format, or they may contain partially constructed B-tree index nodes. Their layout is engine-internal and was never formally published as a stable on-disk format.
The authoritative reference for the primary .DBF and .DBT structures is the dBASE IV Language Reference and the later open specifications published by dBASE, Inc. and Borland. Because temporary files were considered implementation details, vendor documentation on their exact byte layout is limited; where a .TBK is concerned, the applicable .DBT specification governs.
Why These Files Become Orphaned or Corrupt
Temporary files become a recovery problem when the dBASE IV process is interrupted before it can complete its normal cleanup cycle. Common causes include:
- Power loss or system reset during a long
SORTorINDEXoperation on a large table. - A "divide by zero," out-of-memory, or other runtime error in a dBASE application that terminates the interpreter unexpectedly.
- Network disconnection when the table resides on a NetWare or LAN Manager share and the connection drops mid-transaction.
- Improper shutdown of MS-DOS (for example, powering off without exiting dBASE), which leaves lock files,
.TBKbackups, and.TMPworkspaces stranded in the data directory. - Disk-full conditions, where dBASE IV cannot write the final output table and aborts, leaving the temporary file behind.
The result is a data directory littered with files that the application no longer "knows about" and will not automatically reconcile on the next open.
What Data Can Be Recovered
Recovery prospects depend on which type of temporary file survived:
- From
.TBKmemo backups, recovery is often excellent. Because the.TBKis a structural clone of the.DBT, it can frequently be renamed to the correct.DBTfilename and paired with the surviving.DBF, restoring memo field access. Even when the.DBFheader is damaged, the raw text of memo entries can usually be extracted block-by-block. - From
.TMPsort workspaces, recovery is partial. These files often contain complete or near-complete records in dBASE's internal record format, but without the field definitions from the original.DBFheader, the bytes must be re-mapped to meaningful columns manually. Numeric fields, dates, and fixed-length character fields can typically be reconstructed; the exact field names and types must be inferred or recovered separately from the.DBF. - From
.TMPindex workspaces, record data recovery is poor—these files contain B-tree node structures, not row data—but they can sometimes confirm which records existed at the time of the crash.
How Recovery Works
Our recovery process for dBASE IV temporary files generally follows these steps:
- Inventory and triage. We catalog every
.TBK,.TMP,.DBF,.DBT, and.MDXfile in the affected directory, noting sizes and modification timestamps to determine which files belong together. - Header reconstruction. For
.TBKfiles, we validate the 512-byte block structure and repair or rebuild the block chain so the file can be opened as a valid.DBT. - Record extraction from
.TMPfiles. Where a sort workspace contains raw records, we parse the dBASE record layout, separate deleted and live records, and export the data to a clean.DBFor to a modern format such as CSV or XLSX. - Re-association. When both a
.DBFand a matching.TBKsurvive, we re-link them, verify record counts and memo pointers, and deliver a consolidated, usable table.
In cases where the original .DBF is also damaged, we combine temporary-file recovery with full .DBF header and record reconstruction to maximize the amount of live data returned.
Frequently Asked Questions
Can I just rename a .TBK file to .DBT and open it?
Sometimes, yes. If the .TBK is intact and the matching .DBF is healthy, renaming the .TBK to the correct .DBT name (matching the table name) can restore memo access. However, if block pointers inside the file are inconsistent, forcing the table open can cause further corruption—so we recommend working on a copy.
Are dBASE IV temporary files the same as .DBF files?
No. A .TMP sort workspace may contain records in a similar internal format, but it lacks the .DBF header that defines field names, types, and lengths. It cannot be opened directly as a .DBF without reconstruction.
What if my .TMP file is very large?
Large .TMP files from SORT or TOTAL operations often contain the entire source table's record set in a transient state. These are excellent recovery candidates and frequently yield most or all of the records that were being processed.
Do modern versions of dBASE still create these files?
Later dBASE versions (dBASE 5, dBASE Plus, dBASE 2019) changed some internal mechanics, but the .TBK convention for memo backups persisted for compatibility. Recovery techniques for modern dBASE temporary files are largely the same.
Can deleted records be recovered from a dBASE temporary file?
Often, yes. Records flagged as deleted in the source table may still be present in a sort workspace or backup, and dBASE's soft-delete mechanism means the underlying bytes are typically not erased immediately.
If you have orphaned dBASE IV temporary files—.TBK, .TMP, or any other stranded workspace files—our team can help. We offer a free evaluation to assess what data is recoverable from your files before any paid work begins. Send us your files and we will tell you, straight and in plain language, what can be saved.
Send us your .t44 file for a free evaluation
Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.
Start a free evaluation