Step 1: Run the Kernel for SQL Database Recovery software in your system. Click Open to add the database file.

Home Screen of Kernel SQL Database Recovery

Step 2: Click Browse, choose the MDF file for recovery, and add the file to the tool. After that:

  1. Select a recovery mode as Standard or Advanced.
  2. Select database version or allow the tool to detect it automatically.
  3. Enable auto-detection of the Collation Type of the database or set it manually.
  4. Select Include deleted records in recovery to retrieve deleted database objects.
  5. Finally, click Recover.

Browse the corrupt MDF/NDF files
Note: To recover a secondary database file, check the Add Secondary NDF files option and add the NDF file from the system.
Add the NDF files

Step 3: Expand the database folder from the left pane to preview its data.

Get the clear preview of selected data.

Step 4: Select the tables to save and click on Save button.

Select database to save

Step 5: The tool provides three destinations to save the data.

    A. Select SQL Server as the saving mode to restore the recovered database directly to a live SQL Server instance. Make sure the destination server is running before executing the steps below:

    1. Enter the SQL Server name or address.
    2. Select the authentication method:
      • Windows Authentication: Uses Windows credentials.
      • Server Authentication: Uses the SQL Server username and password.
    3. Select one of the following options:
      • Create New Database: Enter a unique name for the new database.
      • Existing Database: Select an existing database to save the recovered data.
    4. Click OK to start saving the recovered data.

    Note: When saving to an existing database, the tool saves only tables that do not already exist in the database. If a recovered table has the same name as an existing database's table, create a new database and save the recovered data there.
    save to live server

    B. Select Save as SQL Script and choose a location to save the SQL scripts and commit.bat file. Use this option if the destination SQL Server is currently unavailable. After saving the files, follow the steps below to insert the recovered data into a live SQL Server database.

    1. Open SQL Server Management Studio (SSMS).
    2. Create a new database.
    3. Go to the folder where you saved the SQL scripts and the commit.bat file.
    4. Double-click the commit.bat file.
    5. Command Prompt will open.
    6. Run the following command:

      commit.bat <server-name> <new-database-name> <sql-server-username> <sql-server-password>

    Note: You can save the data to an existing database. However, if the database already contains tables with the same names as those in the script, the data may be merged and create duplicates. To avoid duplicate data, save the data to a new database.
    save to SQL script

    C. Select CSV File Format to save the recovered tables in CSV format. Click Browse and provide a location to save the CSV file. Then, click OK.
    save to CSV

Step 6: You will receive a confirmation message when the data is saved successfully.

Saving database objects.
↑