"RESTORE detected an error on page (0:0) in database" error while restoring a database

Johnson, Maurice 20 Reputation points
2024-11-23T03:38:48.48+00:00

I have a large database (750GB) that I am backuped on one server and attempted to restore on a different server, I receive the following error - "System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "COTampa_RMProd_Documents" as read from the backup set."

SOURCE: OS Win 2012 R2 and SQL Server 2012 (SP4-GDR)

TARGET: OS Win Win 2019 and SQL Server 2012 (SP4-GDR)

Also, this worked a few months ago after numerous attempts and I have failed twice already in this attempt.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 120.2K Reputation points MVP
    2024-11-23T11:00:52.65+00:00

    Unfortunately, this sounds like your backup file is damaged. Alternatively, the I/O subsystem on the server you are restoring to is munging the bytes while reading the file.

    Assuming that this is a backup from a production server, this is a serious situation, because not having a clean backup of a production database when something goes south means you have total data loss.

    So you need to investigate where in the chain things goes wrong. Is the backup faulty already when taken? Was it damaged when it was copied to the other server? Attempt to restore the backup on different machines, including the source server (under a different name, of course.) For a quick, initial, check, you can use RESTORE VERIFYONLY, but keep in mind that because it completes without error, does not mean that the backup is OK. To fully verify a backup, you need to restore it and run DBCC CHECKDB on it.

    Also, this worked a few months ago after numerous attempts

    Are you saying that when you did the same restore operation a couple of months back, you got the same error, but you were eventually able to load the backup? That suggests that the error is with reading the backup on the target. Which would be good news, but there is no reason to jump to conclusion. Getting an error when reading a backup is not an error to take lightly, but you need to prove that your backups are good.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.