What does HRESULT 0x87AF000B (SQLITE_E_CORRUPT) mean?

 
Previous Next
SQLITE_E_IOERR SQLITE_E_NOTFOUND

SQLITE_E_CORRUPT

SQLITE_E_CORRUPT corresponds to SQLite SQLITE_CORRUPT. SQLite found malformed database content while reading or updating the file.

What to check

  • Stop normal writes and preserve a copy of the database together with its -wal and -shm files when WAL mode is in use.
  • Run integrity checks against a copy, then restore from a known-good backup or export recoverable data through a controlled recovery process.
  • Investigate storage, filesystem, unexpected shutdown, and application behavior; do not delete journal or WAL files as a first response.
PRAGMA integrity_check;

SQLite: Result and Error Codes

SQLite: PRAGMA integrity_check

SQLite: Online Backup API

SQLite: Write-Ahead Logging


Looking for a different code? Search another status or error code.