Search
  • For Individuals
      « Back
    • Windows Data Recovery

      Recovers lost or deleted Office documents, emails, presentations & multimedia files.

      Free Standard Professional Premium

    • Mac Data Recovery

      Recovers deleted files, photos, videos etc. on Mac.

      Free Standard Professional Premium

    • Photo Recovery

      Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

      Free Standard Professional Premium

    • Video Repair
    • Photo Repair
    • iPhone Data Recovery
  • For Business
      « Back
    • Email Repair & Converter

      Repair for Exchange Converter for EDB Converter for OST Converter for NSF Converter for OST MBOX Repair for Outlook

    • Database & File Repair

      Repair for MS SQL Repair for Access Repair for QuickBooks Software Repair for Excel Extractor for Windows Backup Repair for MySQL

    • Data Recovery & Erasure

      Data Recovery Professional Data Recovery Technician Mac Recovery for Technician Virtual Machine Recovery File Erasure Software Mobile Erasure Drive Erasure File Eraser Software File Eraser Software for Mac

    • Toolkit

      Exchange Toolkit Outlook Toolkit File Repair Toolkit MS SQL Toolkit Data Recovery Toolkit

    • Forensic

      Email Forensic Exchange Auditor Log Analyzer for MySQL Log Analyzer for MS SQL

  • Store
  • Partners
  • Services
  • Offers
  • Support

 

  • For Individuals
    DIY software for anyone who works with data.

    Windows Data Recovery Recovers lost or deleted Office documents, emails, presentations & multimedia files

    Free Standard Professional Premium

    Mac Data Recovery Especially for Mac users to recover deleted documents and multimedia files from macOS

    Free Standard Professional Premium

    Video Repair Windows Mac Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

    StandardPremium

    Photo Recovery Windows Mac Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

    Standard Professional Premium

    iPhone Data Recovery Windows Mac Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad

    Recover Erase Toolkit

    Photo Repair Windows Mac Repair multiple corrupt photos in one go. Supports JPEG & other formats.

    Standard Professional Premium


  • For Business
    • Email Repair
    • Email Converter
    • File Repair
    • Data Recovery & Erasure
    • Toolkit
    • Forensic

    Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365

    Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts

    OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items

    Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST

    Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form

    EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST

    OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST

    NSF to PST Convert IBM Notes NSF file & export all mailbox items including emails & attachments to PST

    MBOX to PST Convert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST

    OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form

    GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST

    EML to PST Convert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST

    Office 365 to PST Connect to Office 365 account & export mailbox data to PST and various other formats

    DBX to PST Convert Outlook Express (DBX) file & export all mailbox data - emails, attachments, etc. - to PST

    SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form

    Access Repair Repair corrupt .ACCDB and .MDB files & recover all records & objects in a new database

    QuickBooks Repair Repair corrupt QuickBooks® data file & recover all file components in original form

    MySQL Repair Repair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.

    Excel Repair Repair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.

    BKF Repair Repair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data

    Database Converter Interconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files

    PowerPoint Repair Repair corrupt PPT files and restore tables, header, footer, & charts, etc. like new

    File Repair Toolkit Repair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form

    Data Recovery Windows Mac Recover lost or deleted data from HDD, SSD, external USB drive, RAID & more.

    Technician Toolkit

    Tape Data Recovery Retrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.

    Virtual Machine Recovery Recover documents, multimedia files, and database files from any virtual machine

    File Erasure Permanently wipe files and folders, and erase traces of apps and Internet activity.

    Standard Corporate

    Mobile Erasure Certified and permanent data erasure software for iPhones, iPads, & Android devices

    Drive Erasure Certified and permanent data erasure software for HDD, SSD, & other storage media Windows Mac

    Exchange Toolkit 5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.

    Outlook Toolkit Comprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.

    File Repair Toolkit Powerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.

    MS SQL Toolkit 5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.

    Data Recovery Toolkit Software helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.

    Email Forensic Advanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.

    Exchange Auditor Exchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.

    Log Analyzer for MySQL Analyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.

    Log Analyzer for MS SQL Track & analyze MS SQL Server database transactions log files.

    Email Forensic
    STELLAR EMAIL FORENSIC

    Advanced email forensic tool to analyze and collect the mailbox data of email clients

    Learn More arrow


    All Products arrow

    All Products arrow

    All Products arrow

    All Products arrow

  • Our Partners
  • Lab Services
  • microphone-icon-android

    Trending Searches

    Data Recovery

    Photo Recovery

    Video Repair

    iPhone Data Recovery

    File Erasure Software

    Exchange Repair

    OST to PST

    PST Repair

    Raid Recovery

    MS SQL Repair

  • English Deutsch Français Nederlands Italiano Español 日本語 简体中文
  • Support
Toolkit for MS SQL 3 minute read

How to Identify Corrupted SQL Backup File

Published on February 24th, 2021
Charanjeet Kaur
Written By
Charanjeet Kaur
Raja Jegan R
Approved By
Raja Jegan R

Summary: Having an updated and relevant backup of your SQL database is crucial for restoring the database when disaster strikes. But, you cannot restore the db if the backup is corrupt. This post discusses ways to identify corrupted SQL backup file. If the file is corrupt, you can try repairing your SQL database using the DBCC CHECKDB command. You may also try Stellar Toolkit for SQL software to repair the corrupt database or extract and restore database from the corrupt backup.

How to Identify Corrupted SQL Backup File

Contents

  • How Do I Verify a SQL Server Backup File for Corruption?
    • Method 1 – Using T-SQL Statements
    • Method 2 – Using SSMS
    • What Next?
    • Conclusion

Maintaining regular backup of SQL databases is a good practice. However, you may find yourself in a situation where the database cannot be restored from a backup. This happens when the backup file becomes corrupt. To avoid such a situation, you must regularly test your backups for corruption. 

How Do I Verify a SQL Server Backup File for Corruption?

You can check if your backup file is useable and not corrupted by restoring it and then running DBCC CHECKDB on the newly restored database. However, restoring the db and performing consistency checks for each database restore process is not feasible. That’s because the process takes additional processing time and hard disk space to complete.

Is there a better alternative?

Yes. Using the ‘RESTORE VERIFYONLY’command can help you verify that your backup file is not corrupted and can be restored without any problem. The command does not restore a database. Instead, it reads through the backup file to ensure that it is useable after the backup process is complete.

Following are two different methods that can be used to validate SQL Server backup using the ‘RESTORE VERIFYONLY’ command:

Method 1 – Using T-SQL Statements

Execute the following command to check whether the backup file on disk is valid or not:

RESTORE VERIFYONLY FROM DISK = C:\YourDatabase.BAK GO

Usually, there are multiple database backups in a file. The above command will only check the first file. To check the second file in the backup, run the following command:

RESTORE VERIFYONLY FROM DISK = C:\YourDatabase.BAK WITH FILE = 2 GO

Method 2 – Using SSMS

When taking a backup of your SQL database using a maintenance plan or SSMS, the ‘RESTORE VERIFYONLY’ (i.e., Verify backup when finished) option is used to validate whether the backup is useable.

Verify backup when finished

However, the VERIFYONLY option is not enough to guarantee that your backup file can be restored without any issue. That’s because SQL Server produces backup in Microsoft Tape Format (MTF), and the ‘verify backup when finished’ option only performs a few checks on the MTF blocks containing the backup. Using only the VERIFYONLY option may report that the backup file is useable, even if it cannot be restored.

Thus, it’s recommended that the ‘Verify backup when finished’ option must be combined with the ‘Perform checksum before writing to the media’ option to identify whether the SQL backup file is corrupted or not.

Note: On selecting the ‘Perform checksum before writing to media’ option, SQL Server writes CHECKSUM value for each page when the backup is taken. The Server recalculates the CHECKSUM value for each page against the CHECKSUM generated during the backup process to validate whether the backup file is useable or not.  

Both these options are available under ‘Reliability’ in SSMS, as you can see in the image below:

Reliability in SSMS

What Next?

If your SQL database backup file is corrupted, you can try repairing your database using the DBCC CHECKDB command with the ‘REPAIR_ALLOW_DATA_LOSS’ repair option. If you’re lucky enough, you may restore your database with minimal data loss.

A better alternative is to use Stellar Toolkit for MS SQL software to restore your SQL database with all its data intact. The software comprises tools to repair a corrupt SQL database and extract db from corrupted backup. It also offers a tool to reset passwords of SQL Server database files.

Conclusion

As DBAs, you are already regularly backing up your SQL databases. However, you must also ensure that SQL Server can read the backup if your database needs to be restored. But, you cannot use the backup file to restore the database if it is corrupt. Hence, it is important to identify corrupted SQL backup file before performing the database restore process.

Also read: How to Recover SQL Server Database without Backup?

How to Fix DBCC CHECKDB Consistency Errors?

About The Author

Charanjeet

Charanjeet is a Technical Content Writer at Stellar®who specializes in writing about databases, e-mail recovery, and e-mail migration solutions. She loves researching and developing content that helps database administrators, organizations and novices to fix multiple problems related to MS SQL and MySQL databases and Microsoft Exchange.

Best Selling Products

Stellar Data Recovery Professional for Windows

Stellar Data Recovery Professional for Windows

Stellar Data Recovery has the right Windows Recovery tool for all your data recovery

Read More
Stellar Data Recovery Professional for Mac

Stellar Data Recovery Professional for Mac

Stellar Data Recovery for Mac program performs safe..

 

Read More
Stellar Photo Recovery

Stellar Photo Recovery

A comprehensive photo recovery software to restore photos, music & video files

 

Read More
Stellar Repair for Video

Stellar Repair for Video

Powerful video repair tool for repairing corrupt or damaged MOV and other video files

 

Read More

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

25  −    =  21

Table of Contents    arrow

  1. How Do I Verify a SQL Server Backup File for Corruption?
    • Method 1 – Using T-SQL Statements
    • Method 2 – Using SSMS
    • What Next?
    • Conclusion

Categories

offer banner

Related Posts

related post
Toolkit for MS SQL

How to Restore Specific Table(s) from SQL Database Backup File?

Stellar Author Saba Zehra Rizvi November 16, 2021 Read More
related post
Toolkit for MS SQL

How to Take SQL Server Database Backup Automatically

Stellar Author Charanjeet Kaur August 12, 2021 Read More
related post
Toolkit for MS SQL

How to Recover SQL Server Database from a Corrupt Backup File?

Stellar Author Charanjeet Kaur April 9, 2020 Read More

Free Trial for 60 Days

Stellar Official Website

Stellar Data Recovery Inc.
48 Bridge Street Metuchen,
New Jersey 08840,
United States

ALSO AVAILABLE AT

Partner Logo

About

  • About us
  • Career
  • ISMS Policy
  • Privacy Policy
  • Terms of Use
  • License Policy
  • Refund Policy
  • End User License Agreement

RESOURCES

  • Blog
  • Articles
  • Product Videos
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Software Catalog

NEWS & EVENTS

  • News
  • Events

PARTNERS

  • Affiliates
  • Resellers
  • Distributors

Useful Links

  • Contact Us
  • Support
  • Special Offers
  • Student Discounts
  • Awards & Reviews
  • Downloads
  • Store
  • Sitemap
Follow Us

tw in yt

Stellar & Stellar Data Recovery are Registered Trademarks of Stellar Information Technology Pvt. Ltd. © Copyright 2022 Stellar Information Technology Pvt. Ltd. All Trademarks Acknowledged.

Hippa Logo tuv footer partner logo DMCA.com Protection Status
We use cookies on this website. By using this site, you agree that we may store and access cookies on your device Read More Got it!