Copies before commandsMDF, NDF, LDF, EDB and every log get forensic read-only copies before any tool runs. Database engines write aggressively during 'repair' — the copy is what makes every next step reversible.
The repair switch that deletesSQL's REPAIR_ALLOW_DATA_LOSS is named with unusual honesty: it achieves consistency by discarding what it can't reconcile. It's a last resort we run, if ever, on a copy — never a first response.
Exchange's gentle question firstOne built-in check reads an EDB's header without changing a byte — shutdown state, required log range, damage level. Its destructive sibling, the hard repair, deletes unreadable pages and forces migrations. Diagnosis before surgery, always.
The storage truth beneathMost 'database corruption' is a storage event wearing a database costume — a dropped RAID member, a power cut mid-flush, a snapshot gone wrong. We fix the floor before straightening the furniture, which is why this page and our server page are neighbours.