SQL Server Database Recovery Tool (.MDF & .NDF) — Terabyte-Scale Repair for Windows

Restore damaged Microsoft SQL Server databases of any version in strict read-only mode—without risking your original corporate files. Download Recovery Toolbox for SQL Server for offline Windows recovery of terabyte and distributed .mdf + .ndf databases, or upload a single damaged .mdf file to our online repair service. Inspect recovered tables, records, and database structures free inside the DEMO viewer before purchasing a license.

Windows PCs & Laptops • All Microsoft SQL Server Versions • Terabyte .MDF + .NDF Support • Free In-App DEMO Preview • 100% Read-Only

Online .MDF repair • No installation Works on PC, Mac & mobile

Repair a damaged .MDF file online

No file size limits | The file will be deleted after recovery
1 Upload
2 Scan
3 Free Preview
4 Download
Microsoft Solutions Partner
Norton
VirusTotal
100% Secure
Updated: Written by:
Desktop Windows Software vs. Online .MDF Repair: Choose Your Recovery Workflow

Desktop Windows Software vs. Online .MDF Repair: Choose Your Recovery Workflow

Enterprise SQL database recovery depends on three practical variables: database size, file architecture, and internal data-security rules. Compare both workflows below to choose the right entry point immediately.

Selection Criterion Recovery Toolbox for SQL Server (Windows Desktop) Online .MDF Repair Service (Browser)
Database Size Unlimited — engineered for multi-gigabyte and terabyte databases (16 TB+) Single standalone .mdf files (No file size limits)
File Architecture Single .mdf files and linked .mdf + .ndf filegroup sets Standalone .mdf file only
Corporate Data Security 100% offline on Windows — no database files leave your PC or internal network Encrypted browser upload with automatic server deletion after repair
Pre-Purchase Verification Interactive in-app DEMO viewer showing recovered data and table structures Online recovery preview prior to downloading repaired output
Export & Selectivity Selective object saving; export as .sql scripts or directly to target databases Downloadable repaired output for fast single-file turnaround
Best Fit Regulated companies (NDA/HIPAA/GDPR/SOC 2), terabyte or multi-file .mdf + .ndf databases Quick browser repair of a smaller standalone .mdf without local installation

Routing rule:

  • Choose Recovery Toolbox for SQL Server (Windows) if your database includes .ndf secondary files, exceeds standard web upload sizes, or falls under corporate security policies that prohibit external file uploads.
  • Choose the Online .MDF Repair Service if you have a standalone damaged .mdf file and want fast browser-based recovery without installing desktop software.
Terabyte Corporate Databases, Linked .MDF + .NDF Recovery & Export Strategy

Terabyte Corporate Databases, Linked .MDF + .NDF Recovery & Export Strategy

Many SQL database repair tools break down on real enterprise databases because they only process one file at a time or lock you into a slow, all-or-nothing export into a live server. Recovery Toolbox for SQL Server is built around production Microsoft SQL Server storage architecture.

Distributed .MDF + .NDF Filegroup Recovery & Selective Saving

In Microsoft SQL Server, a single data file caps at 16 TB, while a complete database scales up to 524,272 TB by spreading tables and indexes across multiple secondary .ndf files and filegroups. The primary .mdf file holds startup metadata, file pointers, and system tables, while core business tables frequently reside inside linked .ndf files.

Distributed .MDF + .NDF Filegroup Recovery & Selective Saving
  • Unified .mdf + .ndf reconstruction: Native SQL Server attach operations reject the entire database if any linked file is corrupted, and single-file repair tools break cross-filegroup table links. Recovery Toolbox for SQL Server performs coordinated .mdf file repair and .ndf file recovery together—even on distributed databases exceeding 16 TB—rebuilding unified tables, indexes, and relationships.
  • Selective saving for faster business continuity: On a multi-terabyte database, exporting historical archives or audit logs alongside urgent transactional tables adds hours of unnecessary downtime. Selective saving lets you check and recover mission-critical tables and schemas first, reducing recovery time and disk load.
Export Options: SQL Scripts (.SQL) vs. Direct Database Export

Export Options: SQL Scripts (.SQL) vs. Direct Database Export

Unlike SQL data recovery software that removes script export or forces a live sysadmin connection to SQL Server, Recovery Toolbox for SQL Server gives your team two clean output paths.

Corporate Scenario Export as .SQL Scripts Direct Export to Target Database
Security & Change-Control Audit Recommended — DBAs and security teams can review and stage table structure and data scripts before running them Writes recovered schemas and records straight into the connected destination database
No Production Server Credentials Recommended — run recovery on an isolated Windows workstation without live server login rights Requires valid connection credentials for the target database server
Migration & Cross-Database Use Recommended — portable .sql scripts run cleanly on staging servers or newer SQL Server editions Exports recovered data directly into Microsoft SQL Server and other supported target databases
Limited Disk Space on Production Host Recommended — save scripts selectively table-by-table onto a secondary drive Requires free volume space for both reconstructed data and newly generated transaction logs
Fastest Rebuild into a Clean Server Requires running generated scripts afterward Recommended — creates tables, keys, and rows automatically in one step
Supported Microsoft SQL Server Versions & Recoverable Objects

Supported Microsoft SQL Server Versions & Recoverable Objects

This Microsoft SQL repair tool automatically detects the source file format across all versions of Microsoft SQL Server (SQL Server 7, 2000, 2005, 2008, 2008 R2, 2012, 2014, 2016, 2019, 2022, 2025, and newer releases) and recovers:

  • Tables & Data: Table schemas, active rows, standard and custom data types, Unicode text, and surviving records available for preview.
  • Database Logic & Integrity: Primary keys, foreign keys, indexes, constraints, views, stored procedures, user-defined functions, triggers, and rules.

The MDF fix tool helps fix database errors:

  • SQL Server Page Level Corruption
  • SQL Server Table Corruption Error
  • Database consistency errors reported by DBCC CHECKB
  • Corruption on data pages
  • Metadata corruption Error
  • The header for file xxx.mdf is not a valid database file header.
  • The FILE SIZE property is incorrect. (Microsoft SQL Server, Error:5172)
  • Sql Server Detected A Logical Consistency-Based I/O Error: Incorrect Checksum. (Microsoft SQL Server, Error:824)
  • The Index Allocation Map (IAM) Page is Pointed to by the Next Pointer of IAM Page.
  • I/O error (bad page ID) detected during read at offset 0x###### in file FileName.mdf.
  • File Appears To Have Been Truncated By The Operating System.
  • During Redoing Of A Logged Operation In Database DatabaseName, An Error Occurred At Log Record Id.
SQL Server Database in Recovery, Suspect Mode & Critical Error Triage

SQL Server Database in Recovery, Suspect Mode & Critical Error Triage

When Microsoft SQL Server blocks access to a database, the reported engine state (sys.databases) and error code show whether you are dealing with a stalled startup, blocked file access, or physical page damage.

Observed State / Error Message Plain-English Meaning Can Recovery Toolbox Help? Safe Next Step
SQL Server Database In Recovery (RECOVERING) Startup crash recovery is actively running—or stuck indefinitely on corrupted log or data pages Yes, if stalled or failing (allow normal restarts after huge transactions to finish first) If the database stays stuck or fails to come online, analyze a physical copy of .mdf/.ndf in DEMO mode
RECOVERY_PENDING / Error 945 SQL Server could not begin startup recovery because database files are inaccessible, damaged, or missing a usable log Yes — extracts table data directly from .mdf/.ndf even when SQL Server cannot mount them Copy .mdf + .ndf to a healthy local folder and verify surviving data in DEMO mode
SUSPECT Mode Primary filegroup or critical structures are damaged and startup recovery failed Yes — core physical file repair scenario Stop repeated restart attempts; copy .mdf + .ndf to a healthy Windows drive and inspect tables in DEMO mode
Error 5172 (Invalid Database File Header) The .mdf/.ndf file header failed validation and SQL Server refuses to recognize the database Yes — scans past damaged headers to locate readable data pages Run read-only recovery in Recovery Toolbox for SQL Server (or upload a standalone .mdf online)
Error 823 or 824 (I/O, Checksum, or Torn Page) Critical hardware read failure (823) or logical page corruption (824: bad checksum, torn page, or missed disk write) Yes — salvages intact schemas and rows around corrupted pages Copy files off the suspect drive immediately and run read-only extraction before saving to healthy storage
Error 3456 (Redo / Unreported I/O Failure) A missed write or outdated disk read broke page sequence consistency during recovery Yes — reconstructs consistent table structures directly from surviving data pages Analyze a physical copy in DEMO mode instead of forcing repeated destructive server restarts
Why Free Built-In Repair Methods Often Fail on Corporate Databases

Why Free Built-In Repair Methods Often Fail on Corporate Databases

Microsoft SQL Server includes built-in consistency checks and emergency repair options, and teams often wonder whether a free built-in option can fix a damaged database first. However, official Microsoft SQL Server documentation explicitly classifies destructive built-in repair as an emergency last resort—and documents three reasons free methods are ineffective or dangerous for corporate databases:

  • Permanent, silent data deletion: Destructive built-in repair clears corruption errors by permanently discarding damaged rows, pages, or entire page chains. Once discarded, those records cannot be recovered, and SQL Server does not report which exact business entries were lost.
  • Broken relational integrity: Microsoft warns that foreign key constraints are neither checked nor maintained during emergency built-in repair, which can leave accounting, ERP, or CRM databases internally inconsistent even if they reopen.
  • Hard structural limits: Built-in utilities cannot rebuild severely corrupted .mdf headers, damaged system catalogs, or corrupted memory-optimized tables—and older non-destructive compatibility modes perform no actual repair actions at all.

Running a dedicated read-only SQL recovery tool eliminates destructive trial and error: you see exactly what data survived in the free DEMO viewer before modifying any live environment.

How to Verify Your Database in Free DEMO Mode (No DBA Skills Required)

How to Verify Your Database in Free DEMO Mode (No DBA Skills Required)

You do not need deep database administration experience—or Microsoft SQL Server installed on your PC—to confirm whether your database can be recovered.

Workflow at a glance: Select .mdf (and linked .ndf files) on Windows → Automated read-only analysis & version detection → Free in-app DEMO verification → Selective export to .sql scripts or target database.

4-Point Pre-Purchase Audit Inside the Free DEMO Viewer

Before purchasing a license, spend 60 seconds checking four indicators directly inside the Recovery Toolbox for SQL Server DEMO window:

4-Point Pre-Purchase Audit Inside the Free DEMO Viewer
  • Table & Schema Completeness: Expand the object tree and confirm your critical business tables, schemas, and views are listed.
  • Row & Unicode Readability: Open key tables and verify that recent records, dates, currency/numeric values, and non-English or Unicode text display cleanly.
  • Keys, Indexes & Programmability: Check that primary keys, foreign keys, stored procedures, triggers, and functions appear cleanly in the reconstructed tree.
  • Selective Export Scope: Confirm you can isolate the specific mission-critical tables you need immediately rather than exporting entire archive tables at once.
Free DEMO vs. Licensed Version

Free DEMO vs. Licensed Version

Capability Free DEMO Version Licensed Version
Read-only scan of .mdf & linked .ndf files (any size, all SQL versions) Included Included
Full interactive preview of recovered data, tables, and structures inside the app Included Included
Selective export to .sql scripts or direct export to target databases Preview only Unlocked

Download Recovery Toolbox for SQL Server — Start Free DEMO Inspection

Corporate Data Security, Safe Handling Rules & Technical Boundaries

Corporate Data Security, Safe Handling Rules & Technical Boundaries

In enterprise recovery incidents, safe file handling before scanning protects salvageable pages and prevents repeat outages.

4 Safe File-Handling Rules Before You Scan

4 Safe File-Handling Rules Before You Scan

  • Always scan a physical copy—never your sole remaining original: Running any recovery or emergency operation directly on the only copy sitting on an unstable drive risks permanent data loss. Copy the .mdf and all associated .ndf files to a healthy Windows drive first.
  • Release Windows file locks before copying: If a database is still attached to a running SQL Server service, Windows locks the .mdf/.ndf files against clean reads. Take the database offline or briefly stop the SQL Server service while copying the files to your working folder.
  • Keep linked .mdf + .ndf files together and export to a separate healthy drive: Place the primary .mdf and every secondary .ndf file in the same directory before scanning. Always direct .sql script output or rebuilt databases to a healthy drive with ample free space—never onto a failing or nearly full partition.
  • Audit failing storage and antivirus scanners before going back online: After Error 823 or 824 incidents, Microsoft recommends checking disk health, storage controller firmware, and third-party antivirus or backup file scanners on the server so a faulty I/O path does not immediately re-corrupt the restored database.

Technical Boundaries: When File-Level Repair Cannot Recover Data

Clear technical limits protect response time during an outage. File-level SQL database recovery software cannot recover data in four scenarios:

Technical Boundaries: When File-Level Repair Cannot Recover Data
  • Transparent Data Encryption (TDE) without keys: SQL Server encrypts TDE-protected .mdf and .ndf files using a database encryption key locked by a server certificate. Without the original server certificate and private key backup, no file-level repair tool can decrypt the database.
  • Fully encrypted ransomware files: Recovery Toolbox for SQL Server does not decrypt ransomware encryption. If an attack only encrypted the file header or partial blocks of a large .mdf file, the tool may still salvage unencrypted tables and records—verify exact recoverability inside the free DEMO viewer first.
  • Zero-byte (0 KB) or physically overwritten files: If a storage failure or disk wipe zeroed out or overwrote the file sectors, no database structure remains to extract.
  • Pure logical rollbacks on an undamaged database: If an operator ran an accidental UPDATE without WHERE on a healthy online database and you need transaction-log auditing rather than corrupted file repair, a transaction log reader using intact .ldf/backup chains is the appropriate category of tool.

SQL Server FAQ: Practical Recovery Answers

How to import the saved SQL scripts into database?

There are two ways to save data, supported by Recovery Toolbox for SQL Server:

  1. You can save SQL scripts to hard drive, they will create database objects, tables, for example, and insert data to these tables.
  2. You can also launch scripts in databases, defined by users, these scripts are written in SQL language.

Please note, that SQL scripts can be different, in spite of the fact, that they base on the same files of database. It happens because of syntax particularities both in queries, that are executed for direct server connection by means of ADO and in SQL queries, performed in the Query Analyzer environment that is supplied with MS SQL Server (the use of ":", the Go command, etc.). The first way is more reliable, what about the second way, it is more convenient.

Converting data to scripts and save it to disk

  1. Saved data mapping

    If you've chosen to save data on disk, Recovery Toolbox for SQL Server will create a subdirectory, that includes name of the source MDF file, this subdirectory is created in the user-defined directory and all scripts will be placed there. All scripts are named by rule, names consist of a word and a digit. Word indicates the script's role, digit indicates its number. There are many script types, for example:

    • Types*.sql - scripts will create data types, defined by users.
    • Tables*.sql - scripts will create tables.
    • Indexes*.sql - scripts will create primary keys and indexes.
    • ForeignKeys*.sql - scripts will create foreign keys.
    • Procedure*.sql - scripts will create stored procedures.
    • Function*.sql - scripts will create functions, defined by users.
    • View*.sql - scripts will create views.
    • Triggers*.sql - scripts will create triggers.
    • Data*.sql - scripts will insert data into tables.

    Script sequence number does not contain any useful data, it does not point at script execution sequence or any other information. These numbers are used only to split data and save it to a variety of small documents instead of one large file. Users can define the maximum size of file with SQL script. Moreover, users should take notice of the numbering of Data files. It should be noted, that each file of the Data type can contain data for one table only. Files with sequence numbers contain all data for each table.

    Note: If numbers are missing for some files, it means that some tables do not contain any data.
  2. Script execution sequence

    In this figure, you can see the recommended order of script execution:

    Script execution sequence

    Script execution sequence depends on existing restrictions for existing data and structures of the table. Please pay particular attention to these factors:

    1. Please specify corresponding primary key, if you'd like to create a secondary key. Owing to this fact, these operations are saved to different files, which should be launched in this sequence.
    2. Before the creation of indexes and secondary keys, the program fills tables. It is obligatory, because referential integrity check is performed, when a table with defined secondary key is being filled. When tables with secondary keys are filled before tables with corresponding primary keys, there's an error. Moreover, this method features another particularity. If recovered data conflicts with the primary key, unique indexes, etc., in this case, the table will be filled with data anyway, but restrictions will not be created (index, primary key, etc.). If users require another behavior, they can select script execution sequence themselves.
    3. Procedures, Functions, Views and Triggers object creation in a database has some difficulties, because these objects may have sophisticated and tricky dependencies. Procedures may refer to other Procedures, Views may refer to Functions, Triggers may refer to all objects. That is why, a program cannot help to solve the tangle. Users should find all dependencies manually and launch SQL scripts in the needed sequence. Another possibility consists in executing of all scripts in this group several times, until all error messages will disappear.
  3. Install.bat file

    Install.bat file is created to ensure automated execution for all scripts. This file executes all scripts, that were previously saved by the tool. Script execution sequence will be the same, as when applying to database. This batch file requires the isqlw utility to be installed, it is a part of MS SQL Server client part. Please specify Server name, Database name, Username and Password parameters for the file install.bat in the command line. For example: install.bat SQLServer SQLDatabase SQLUser SQLUserPassword

    Attention:
    • Parameters should be separated with a space. If a parameter contains space itself, you should enclose it with double quotation marks.
    • Parameter sequence cannot be modified.
    • Please import data into NEW EMPTY database. Database must not contain any tables, indexes, stored procedures and so on before data import.
    • If install.bat file will be executed without parameters, you can see a brief guide, how to launch this file.
  4. InstallTrusted.bat

    If you want to log in to Microsoft SQL Server via your Windows account, then use InstallTrusted.bat file. InstallTrusted.bat file has two parameters: Server name, Database name.

    Example of use: installtrusted.bat SQLServer SQLDatabase For details on logging in via Windows account see here: https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/principals-database-engine?view=sql-server-2017

How to recover database from several source files?

Repairing a database in MS SQL Server format from several source files

A database in MS SQL Server format contains one or several files. There are several types of files: main data file (with *.mdf default extension), secondary data file (with *.ndf default extension) and a transaction log file (with *.ldf default extension). If you'd like to repair data with Recovery Toolbox for SQL Server, you should specify the path to all secondary data files and the main data file. It can be made with Open File dialog box.

repair mdf Fig.1

If corrupted database contains the main data file, a secondary data file(s) and a transaction log file(s), you should select the main data file of *.mdf format and all secondary data files of *.ndf format (see fig. 2).

fix ms sql server Fig.2

Can Recovery Toolbox for SQL Server recover data after an attack by a ransomware encryption?

Recovery Toolbox for SQL Server can partially or fully recover information from .MDF/.NDF files of Microsoft SQL Server database files encrypted by ransomware viruses.

Recovery Toolbox for SQL Server does not decrypt data.

In general, data decryption is not applicable in these cases.

However, Recovery Toolbox for SQL Server can be useful in cases when the MDF file was partially encrypted. Typically, viruses only encrypt the header and/or beginning of files because of their large size. In these cases, if only the header or part of the MDF file was encrypted, Recovery Toolbox for SQL Server can be helpful. The program analyzes all the data blocks and collected data structure in the file. Then, it recreates the original data structure and the data itself, if possible.

Microsoft SQL Server MDF file structure

Microsoft SQL Server MDF file structure

Is it Possible to Recover Data from an MDF File after an Attack by a Ransomware Virus?

There is no guarantee that you can recover 100% of the data or some part of it by using the program. To get a definite answer to that question, you need to download the DEMO version of Recovery Toolbox for SQL Server, specify the encrypted MDF file and wait for the analysis of the file to complete.

Upon completion of the analysis of the .mdf file in the DEMO version of the program, a full preview of the data that can be extracted from the file is available.

Note:

Recovery Toolbox's customer support department informs that usually ransomware programs only encrypt the header of the database file because of its large size. As a result, it is often possible to recover almost the entire data structure and almost all information from the source file.

There has been an error converting into datetime format while importing scripts into SQL SERVER 2000

If you see the following error after running your scripts:

Server: Msg 242, Level 16, State 3, Line 1

[Microsoft][ODBC SQL Server Driver][SQL Server] The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

The statement has been terminated.

It means that you should change the server language settings by doing the following:

  1. Start Enterprise Manager.
  2. Select the necessary server and connect to it.
  3. Open its properties window by clicking the right mouse button on it and selecting Properties.
  4. Open the Server Settings tab.
  5. Select English in the Default Language for user dropdown list and press OK. repair sql server
  6. Stop SQL server. To do that, select Stop in the context menu and answer Yes to the question Are you sure you wish to stop SQL Server service. in the confirmation window.
  7. Start SQL Server. To do that, select Start in the context menu.
  8. Now you can run scripts saved on your hard drive by Recovery Toolbox for SQL Server. You can also run the program in the database scripts execution mode. ms sql server restore
  9. Now you need to restore the settings. To do that, open the properties window of the necessary server in Enterprise Manager.
  10. Select the default language in the Default Language for user list and press OK. corrupted database sql server
  11. Stop SQL server. To do that, select Stop in the context menu and answer Yes to the question Are you sure you wish to stop SQL Server service. in the confirmation window.
  12. Start SQL Server. To do that, select Start in the context menu.

There has been an error converting into datetime format while importing scripts into SQL SERVER 2005

If you see the following error after running your scripts:

Server: Msg 242, Level 16, State 3, Line 1

[Microsoft][ODBC SQL Server Driver][SQL Server] The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

The statement has been terminated.

It means that you should change the server language settings by doing the following:

  1. Start Management Studio.
  2. Choose the necessary server.
  3. Go to Security\Logins.
  4. Choose the user that will be using the database and open the user's properties window.
  5. Select English in the Default Language for user dropdown list and press OK. recovery tool ms sql server
  6. Now you can run the script saved on your hard drive by Recovery Toolbox for SQL Server. Alternatively, you can start the program in the database scripts execution mode. suspended databases sql server
  7. Now you need to restore the settings. To do that, open the properties window of the necessary user Management Studio.
  8. Select the default language in the Default Language for user list and press OK. corrupted .mdf files

How to connect the MDF, LDF files to the server?

  1. Start SQL Server Management Studio
  2. In Object Explorer right click on Databases
  3. Click on Attach
  4. Click Add button
  5. Select the mdf file and click Ok button
  6. Click Ok button
  7. Wait for operation complete.

When I preview data in Recovery Toolbox for MS SQL Server, I see recovered procedures, views and other data, but after I execute the saved scripts, this data is not displayed in the Microsoft SQL Server database

To fix this problem, you should:

  1. Save the data as scripts
  2. Run the file install.bat with all the necessary parameters from the command line
  3. See response files (*????.sql.txt) to find out which scripts have not been executed successfully
  4. Load scripts executed with errors into Query analyzer from Microsoft SQL Server and try to execute them there. After you get an error message, you should detect which command causes the error. If this command writes data that is of no value, you can simply remove it from the file. Otherwise you should send the script executed with errors and a screenshot from Query analyzer to the developers. Besides, it may later be necessary to send the source *.mdf file to the developers for them to study the problem.

After migrating the MSDB database on the new server via restoring, DTS Packages cannot be opened and executed. An error message appears: The system cannot find the file specified

Simply copying or restoring data tables from an MSDB database on a new server does not allow to restore DTS Packages because they have interior connections to the execution context of the server on which they were created and on which they were used on it prior to migration. To copy DTS Packages between servers, VB scripts must be employed. Therefore, the program Recovery Toolbox for SQL Server is not suitable for restoring DTS Packages.

Recovery Toolbox for SQL Server needs the tool isqlw.exe in order to import saved scripts to the database. But I do not have it because I use SQL Express 2005 (SQL Express 2000). How do I import recovered data to the database?

The tool isqlw.exe is a component of the MS SQL Server package. You can always download the latest version of MS SQL Server from the Microsoft site and install the necessary components on the computer. The demo version of MS SQL Server downloaded from the Microsoft site allows you to use the components within the period specified in the EULA.

If you can find the appropriate tools on Microsoft.com then you can download and install Query Analyzer from our website. The link for download is: https://recoverytoolbox.com/download/isqlwInstall.exe

A message about the lack of physical memory appears while the program is running

A lot of RAM is required to recover large MS SQL Server databases. The developers of the program recommend that you recover large databases on computers with enough free physical memory. The physical memory used by the program must not be less than the size of the file you are recovering divided by 500 plus 20-100 MB more for the program to run. That is, if you try to recover an .mdf file with the size of 100 GB, the computer must have at least (100 GB / 500) + 120 MB = 320 MB of free physical memory.

When I recover data with Recovery Toolbox for SQL Server, excessive or incorrect values appear in Primary Key fields

  • If a value in a Primary Key field is incorrect (for example, it is negative or several dozen times greater than all other values), it means that the source data were seriously damaged and it is impossible to recover it completely.
  • If duplicate values appear in Primary Key fields, it means that the program has recovered sheets with data that should have been marked for deletion in the database (mdf, ndf files). But actually there is no mark that the sheet with data should be deleted. And therefore the program recovers data from all sheets. It results in excessive recovered data and the developers of Recovery Toolbox for SQL Server could not find criteria for filtering out excessive entries. In this case, database administrators and/or software developers make the final decision about excessive entries in the recovered database that should be deleted.

This time I was able to save the results but ALL the tables were empty and I couldn't see any of the information

It is possible that something additionally happens with your MDF between tryout and registration (recovered by other software or something else). You can check it by running the demo version against this file on another computer.

What to use for importing data to MS SQL Server: sqlcmd or isqlw?

Recovery Toolbox for SQL Server automatically detects the server version the database was used on. Therefore, if the database was used on MS SQL Server 2000, the program writes the isqlw tool to the saved scripts for importing into the new database. If the database was used on MS SQL Server 2005 or higher, the sqlcmd tool is used in the scripts. If you want to import data to a database on a server with a version different from the original one, you should use the tool for the corresponding server:

  • Isqlw - for MS SQL Server 2000
  • Sqlcmd - for MS SQL Server 2005 and higher

What are the limits on the size of recoverable MDF/NDF files?

Recovery Toolbox for SQL Server has no limits on the size of recoverable MDF/NDF files. The utility has no limits on the number of recoverable files.

Is it possible to recover a single table or schema from a damaged database?

Yes. On a separate page before saving data in Recovery Toolbox for SQL Server, you can select any table, table data, procedure, function, index, or trigger for recovery.

What types of MDF file damage are supported (e.g., logical/physical)?

Recovery Toolbox for SQL Server recovers damaged databases after logical damage, which may have been caused by physical damage.

Does the database compatibility level affect recovery?

No. The database compatibility level does not affect the ability to recover a SQL Server database.

How can I recover data if the database log file (LDF) is completely lost?

Recovery Toolbox for SQL Server does not use database log files (LDF) to recover the damaged Microsoft SQL Server database itself.

Is there support for compressed MDF files or encrypted databases?

It is possible to partially recover data from MDF files of encrypted databases if these database fragments have not been encrypted. Viruses usually do not encrypt large files completely. For large files, usually only the beginning and end of the file are encrypted. Recovery Toolbox for SQL Server can extract data from the unencrypted part of the database file.

Does the version of SQL Server affect the success of recovery? Which versions are better supported?

The version of SQL Server does not affect the quality and success of recovery.

How can I recover only the structure of the SQL Server database, without the data?

On the form before saving, you need to select only the creation and saving of scripts for creating objects.

Is it possible to combine recovery with subsequent migration to a new version of SQL Server?

Yes. Save all recovered data as SQL Scripts and then sequentially import the data into the new version of SQL Server.

Are indexes, triggers, and procedures saved during recovery?

Indexes, triggers, and procedures are always saved. It is important to note that when applying scripts to create indexes, failures may occur if the data is partially or incorrectly recovered.

What guarantees are there that the recovered files will not fall into the wrong hands?

Recovery Toolbox for SQL Server runs locally on clients' computers and does not exchange data with third-party servers.

Can the program be used for commercial purposes (e.g., in IT outsourcing)?

Yes, you can. You need to purchase a Business License or Local License.

Is there an API or console version for automating recovery?

No. There is no console version or API.

Is integration with backup systems (e.g., Veeam, Acronis) supported?

No.

Can recovery be integrated into the CI/CD pipeline?

No.

Can the program be used on virtual machines and clouds?

Yes, the program can be used on virtual machines, clouds, remote desktops, etc.

Can MDF Viewer display binary data or blob fields?

No.

Can data be viewed without connecting to a live SQL Server?

Yes. You don't need to be connected to SQL Server to view data from an MDF file. You also don't need to have SQL Server installed.

Can I export data from a damaged SQL Server database to CSV/Excel format?

No. You can export data to SQL scripts or directly to a new SQL Server database.

Is it possible to filter or search data in a large damaged MDF file?

No. There is no search or filter function for data in damaged MDF files.

What are the limits on viewing data in the free version of MDF Viewer?

There are no limits for MDF Viewer. In addition, the function of viewing data in an MDF file is free and does not require the purchase of a license.

Is it possible to recover data if the file has been previously recovered by other software?

Recovery Toolbox is not responsible for third-party software. However, you can download, install, and test the ability to recover data after other software for free. The demo version of Recovery Toolbox for SQL Server is free and always available on the website.

Is the recovery of links between tables (foreign keys) supported?

Yes, links between tables are supported. However, the data from each table must remain completely intact and correct. If some of the data from the table is lost, executing the SQL script to create a foreign key will result in an error.

How long does it take to recover a typical 100 GB database?

The recovery speed depends on the performance of the computer on which the damaged SQL Server database is being recovered and saved. In tests on a real damaged SQL Server database of 300 GB, the total recovery time was 5 days. The test was conducted on a high-performance computer with a very fast disk system based on NVMe disks.

Does PC performance affect recovery speed?

Recovery speed is affected by the processor clock speed and the data exchange speed with the file subsystem disk.

What logs does the program create, and can they be analyzed for auditing purposes?

The program logs are available on the last page of the program and in the err.log file.

Is there an option to 'roll back' or cancel the recovery?

Recovery Toolbox for SQL Server does not change or modify the original MDF file. Therefore, there is nothing to cancel or 'roll back.'

How can I contact technical support in English?

You can contact technical support in any language. The technical support response will be in English. The technical support response can be translated into any language using the free Google Translate or DeepL services.

How do I report an error if the program cannot handle the file?

The technical support contact form is available here: https://recoverytoolbox.com/support.html. Technical support responses take up to 24 hours.

How does Recovery Toolbox for SQL Server differ from standard Microsoft tools (DBCC CHECKDB, DBCC REPAIR)?

Every week, we receive requests from users who are unable to recover damaged SQL Server databases using standard Microsoft tools (DBCC CHECKDB, DBCC REPAIR). Recovery Toolbox for SQL Server uses a very complex algorithm to analyze the structure of the file, blocks, and connections within the data. This is a special artificial intelligence for recovering damaged Microsoft SQL Server databases. Therefore, the quality and percentage of recovery using Recovery Toolbox for SQL Server is significantly higher than using standard Microsoft tools.

Can the program be used to analyze the causes of MDF file damage?

No.

What additional tools for SQL Server do you recommend to prevent data loss?

We recommend:

  • making regular backups;
  • regularly checking the backup system, including restoring the database from a backup;
  • checking the operation of backup power supplies;
  • replacing batteries in backup power supplies.
Enterprise SQL Server Recovery FAQ

Enterprise SQL Server Recovery FAQ

1. Can Recovery Toolbox for SQL Server recover a database if the .ldf transaction log is missing or corrupted?

Can Recovery Toolbox for SQL Server recover a database if the .ldf transaction log is missing or corrupted?

Yes. Recovery Toolbox for SQL Server reads schemas, tables, and committed records directly from .mdf and linked .ndf data files without requiring an intact .ldf transaction log file. Uncommitted in-flight transactions that existed only in a lost .ldf and were never flushed to data pages cannot be reconstructed, which is why verifying recent rows in DEMO mode is recommended.

2. What if a distributed database has an intact .mdf file, but one or more .ndf files were permanently lost?

What if a distributed database has an intact .mdf file, but one or more .ndf files were permanently lost?

Native SQL Server refuses to attach a database when any linked .ndf file is missing. Recovery Toolbox for SQL Server can still scan the surviving .mdf and remaining .ndf files to extract every schema, table, and record physically stored inside those surviving files. Data residing exclusively inside a permanently missing .ndf file cannot be recovered unless that file is located.

3. Do I need Microsoft SQL Server or SSMS installed on my Windows PC to scan, preview, or export .sql scripts?

Do I need Microsoft SQL Server or SSMS installed on my Windows PC to scan, preview, or export .sql scripts?

No. You can install and run Recovery Toolbox for SQL Server on any standard Windows PC or laptop without Microsoft SQL Server or SQL Server Management Studio installed. Scanning, reviewing recovered structures and rows in DEMO mode, and generating .sql scripts work completely standalone. A target database connection is only needed when you choose direct database export.

4. Can I restore recovered data into a newer SQL Server version—and what if script import triggers key conflicts?

Can I restore recovered data into a newer SQL Server version—and what if script import triggers key conflicts?

Yes. Because Recovery Toolbox for SQL Server supports legacy through modern Microsoft SQL Server formats and exports portable .sql scripts, you can load recovered schemas and data directly into a newer SQL Server instance. If severe file damage produced duplicate rows that violate a UNIQUE or FOREIGN KEY constraint during import, exporting as .sql scripts lets your team inspect and clean the conflicting rows cleanly before applying constraints.

5. What Windows environments and corporate licensing options are supported?

What Windows environments and corporate licensing options are supported?

Recovery Toolbox for SQL Server is built for Windows desktops, laptops, and Windows Server environments, running 100% offline inside your corporate network. Licensing scales by deployment scope—Personal (noncommercial use), Business (enterprise, commercial, and government use), and Site (multi-workstation corporate deployment across up to 100 devices in one or more company locations). Check the order page for current license pricing.

Ready to verify what can be recovered from your damaged SQL Server database?

Export verified SQL Server data with a desktop license

Buy Recovery Toolbox for SQL Server

Preview your recovered data in the free DEMO before purchasing a Windows license. Choose the license that matches your use.

Read-only SQL Server database recovery

Activation and license terms

  • An email with a registration code and instructions for activating this code will be sent to the user immediately after the payment confirmation.
  • An email with a registration code will be sent from several different mail servers to prevent messages from appearing in SPAM filters. Accordingly, a possible duplication of registration letters received in the user's mailbox.
  • To activate the registration code, you need to run the application in Windows under a user with Administrator rights.
  • The number of Personal, Business or Site licenses activated simultaneously must not exceed the number of purchased licenses.
  • We sell software via registration services PayPro Global and Noventiq. That is why not Recovery Toolbox, but the corresponding company will be specified in the payment documents.

The purchased registration key is valid for all 2.x versions of Recovery Toolbox for SQL Server.

Windows SQL Server database recovery workflow

Buying the License Renewal

Choose a one-year renewal for your existing license type.

Payment Services

PayPro Global

PayPro Global (PayPro Global, Inc., 250 The East Mall street, Etobicoke, ON Canada, M9B 0A9) is the fastest growing eCommerce company that develops customized solutions to help software producers to easily and effectively sell software online. PayPro Global supports more than one hundred currencies, all major credit cards, and a wide variety of payment options. PayPro Global offers efficient customer support 24/7 and provides personal attention to customers having special requirements.

Noventiq

Noventiq online store for licensed software opened in 2004. Noventiq offers customers over 15,000 programs from 3,000 developers, provides fast delivery (electronic and physical), accepts 20 payment methods, and includes a cumulative discount system. Noventiq specialists provide customers with all the necessary advice for purchasing licensed software. Selling software is our profession!

Video:

Victor G. Bobrov, Senior Software Engineer.

MCSD, MCDBA

Expert in data structures, data storage, information storage, and data recovery from damaged Microsoft SQL Server databases with over 20 years of experience.

Real customer reviews from TrustPilot

Customer reviews and ratings

Post review
Carlos Gutierrez 08-11-2026

good

arturo 06-22-2026

Good website for fulfilling its purpose

nuria 05-17-2026

He saved my life

mm 01-29-2026

its a good product it does everything it says it could do

GUILLERMO 01-28-2026

Impresionante, no imaginé tal eficiencia, muchas gracias.

Oscarin Guti 12-30-2025

80 años. Retirado. RECOVERY,TOOLBOX, facilísimo de usar. Fabuloso.

anu 08-24-2025

nice

Moon 07-03-2025

Everything is beautiful

Jaggu 05-09-2025

Great Software

Viserrian 04-08-2025

Excellent Experience – Highly Recommend!
I had a wonderful experience! The service provided was fast, efficient, and very professional. Everything went perfectly from start to finish, and the quality of the product/service exceeded expectations. I highly recommend it! Definitely deserves 5 stars!

Eveline 04-06-2025

I use a NAS drive to sync between my desktop and laptop. The NAS stores 30 versions and then deletes the oldest. While working on the laptop, the last good version was overwritten by more than 30 incomplete files. Because of this, I could no longer access my administration, as the MDF (administration) file was corrupted.

Thanks to Recovery Toolbox I was able to read the data, use the last good backup copy and, using my own software, re-enter it into the management system.

Lesson learned?

Use your NAS for critical files as little as possible. If you do, pause syncing and wait until your computer is turned off until the files are safely synced to the NAS.

Сргей Д 04-05-2025

Great program, thank you!

alesik61 03-16-2025

Отличная программа

Dupuy Georges 03-12-2025

Excellent !

Geoff 12-19-2024

Very good and easy ti use

oscarocando 12-08-2024

Thanks! You've saved my life!!! You're the greatest!!! Thanks!

Movieguru 09-30-2024

Very nice program, thanks.

Nate Van Wormer 08-19-2024

The database is used for a piece of medical imaging equipment for patient data and images. The PC was hard booted (shutdown) and upon reboot the database had a mismatch between a couple of the files.

Marcos Campos 11-20-2023

I had my database encrypted by RamsomWare.
Using the recoverytoolbox application I was able to access the table structure, but the most important tables are corrupt.

Some tables were complete.

portoinf 02-26-2023

The indexes are not restored because some of the data was lost.
But you can know exactly what records are missing: you can see the data gaps in the indexes.

Nagaraju Gannepalli 02-02-2023

Thank you so much

Mohammad Arshan 11-25-2022

GREAT EXPERINCE

Ariel Spencer 03-24-2021

I do not want to be ungrateful, so I will leave a review.
The support teams helped to repair the file by fully investigating my problem.
It's very good that you went to meet me.
I could not do such a job myself 100%.
Thank you for your help and your patience.

Rachel Rasmu 02-10-2021

When my .mdf file broke, I decided to time the repair of my MS-SQL file. For the database 5.6GB it took 1 hour 23 minutes

Jonh Seana 01-19-2021

Exporting the repaired .mdf file by running the script directly from the program crashed because there was a problem with the time format. I had to save the .mdf file and manually change all the values of the column with the DateTime property.
Write a statement "How to export a database to MS SQL Server 2000 with DateTime". The program pulls 4 stars

Robert 12-16-2020

With more than 10 years of experience, I am convinced that this program is really useful. You can, of course, manually try to fix the database, but how long it will take and whether there will be problems in the future is not clear. So I preferred this program to auto-fix the SQL Server database because of the time and frustration it saves.

Олег 10-24-2020

Excellent. Restored databases after a ransomware virus.

Vertigo 06-17-2020

I could repair my damaged .mdf file, but when I open file in MS SQL 2003, I saw that some foreign keys was not recovered in scheme

Hijinks 06-03-2020

If you didn’t recover part of the data while restoring the .MDF file, try to restore it in parts, choosing .MDF and .NDF files. So I was able to completely repair my damaged SQL Server 2005 database. Of course, not a quick way to fix a corruption file, but it works.

MonsterWaves 04-15-2020

In order to restore the .LDF file of SQL Server 2005, you first had to restore the .MDF databases. The recovering process took a long time because the database was very large.

Joshra 04-03-2020

I can recover my data from a .MDF file, but when I tried to import SQL recovered data into Microsoft SQL 2005 by "Execute script on database" option. My data doesn't restore. There has been an error converting into datetime format while importing scripts into SQL SERVER 2005. I choose first option "Save script to disk" and run it in MS SQL and its way help me.

Юрий Соколов 05-28-2019

My encryption virus encrypted the header of an important mdf file. Using Recovery ToolBox for SQL Server completely recovered information. Thanks to those who wrote this program! The program is worth the money!

I.K. 06-13-2018

I repaired suspend database on good server. But it require 1 weeks of work Win2016 + SQL Server 2016. Size of *.mdf file was very huge...

S8 06-13-2018

SQl Server 2000 was repaired in 17 hours.
But saved sql scripts placed 15gb on disk.

D.Hopkins 06-13-2018

Best tool of the year I used!!!!
SQL databases were crashed by unknown reason, Recovery Toolbox for SQL Server saved the situation.
Sometimes, recovery process interrupts, but fortunately after, continues.

Recovery Toolbox for SQL Server
DownloadOnline RepairBuy

By downloading or selecting a file, you agree to the Terms of Service and EULA.