1. Home
  2. Why a copied database file won’t open
VerifiedGuide checked November 2026

Why a Copied Database File Won’t Open, and How to Fix It

A copied database file that will not open is usually missing something the original relied on. This page, part of our guide to protecting a database file from being copied, covers the four common causes on Windows.

  • NewSoftwares.net editorial team
  • Published November 2026
  • Last verified: November 2026
  • 7 min read
Quick answer

Check three things in order: the copy was taken while the database was closed, its journal or -wal file came with it, and its password or certificate is available. One of the three explains most failed copies. Fix the pair, then the key.

At a glance
Applies toSQLite, Access and SQL Server files on Windows
Time needed15 to 30 minutes
DifficultyModerate
CostFree
Needs adminSometimes, for certificates
Last verifiedNovember 2026
See our top recommendation →
Database cylinder with its journal files and a key that opens the copyfile + journal

Four Causes of a Copied Database That Will Not Open

Four causes cover nearly every failed database copy: the file was copied while a write was active, its journal or -wal file was left behind, its encryption key is missing, or the target engine is an older version. Each one has a distinct symptom.

Symptom, cause and fix for a copy that fails
SymptomLikely causeFix
Error saying the file is not a databaseCopy taken mid-write or wrong keyRestore a consistent backup; confirm the key
Missing recent changesThe -wal file stayed behindCopy the database and its -wal file together
Prompt for a password or certificateSource database is encryptedSupply the key; restore the certificate first on SQL Server
File opens read-only or fails on older softwareNewer file formatOpen with the same or newer engine version
Flow from a copy that will not open to checking its companion files then its keyCopy opensError shownCheck pairCheck keyJournal or WAL file left behind?Password or certificate missing?
Work from the error, to the companion files, to the key.

The Pair-and-Key Rule for Copying a Database Safely

The Pair-and-Key Rule says a database copy is complete only when it carries its pair, meaning the file and any journal or -wal file, and its key, meaning the password or certificate. Miss either half and the copy can fail.

A database, its journal files and its key must travel togetherjournal / -waldatabasepassword or certificate
The pair and the key travel together.

For SQLite, let the engine make the copy. Both commands below produce a consistent file even while other programs read the database.

SQLite shell: make a consistent copy
sqlite3 source.db ".backup 'backup.db'"
sqlite3 source.db "VACUUM INTO 'backup.db';"

An export made for a protected drive avoids the issue, since a product such as Copy Protect prepares fresh output each time. Our list of common mistakes on the main guide shows where else copies go wrong.

How to Recover Access to a Database File You Own

Owner recovery follows a fixed order: confirm you own the file, look for a stored key, restore from backup, and only then contact the vendor. We do not describe cracking passwords on files you do not hold, since that path serves only unauthorised access.

  1. Confirm ownership. Sign in as the account that created the file.
  2. Look for the key. Check a password manager, saved notes and the BitLocker or certificate export.
  3. Restore from a backup. Use your latest verified copy.
  4. Ask the vendor. Use the developer’s support contact page for tools of ours, or the engine vendor’s support for theirs.
Never repair your only copy

Work on a duplicate of the damaged file. A failed repair attempt on the original can end the chance of recovery. Delete stray broken copies afterward with a secure deletion method.

Checklist Before You Copy a Database Next Time

Five checks before every copy prevent most of these failures. Run through them in order, and tick each box to track your progress on a copy that matters.

Copy-readiness checklist

0 of 5 completed

Failed Copy Questions, Answered

The copy is probably missing its journal or -wal file, was taken mid-write, or came from an encrypted database that needs its key. Check that the companion files sit beside the database, then confirm whether the source uses encryption.

You can, but the copy may be unusable. The SQLite documentation warns that a plain copy during an active write can be corrupt. Close the application or use the engine’s own backup command, which produces a consistent copy.

Search your password manager, saved notes and email for it first. Microsoft cannot recover an Access database password. If you hold an older unencrypted backup, restore from that and set a new password you store safely.

A backup from a Transparent Data Encryption database restores elsewhere only when the certificate and its private key are present on the target. Restore the certificate first, then run the restore.

Not always. Try the engine’s integrity check, then restore your last good backup. If only the journal was missing, putting the original journal back beside the file can let the engine finish its recovery. Never run repairs on your only copy.

Prevent the Next Failed Copy

Return to the main guide for the protection methods, or try a bound output on exported media.