2 out of 6 rated this helpful - Rate this topic

How to: Repair a Failed SQL Server 2008 Installation

Repair operation can be used in the following scenarios:

  • Repair an instance of SQL Server 2008 that is corrupted after it was successfully installed.

  • Repair an instance of SQL Server 2008 if the upgrade operation is cancelled or fails after the instance name is mapped to the newly-upgraded instance.

    • If you see the following message in the summary log, you can repair the failed upgrade instance:

      "SQL Server upgrade failed. To continue, investigate the reason for the failure, correct the problem, and then repair your installation."

    • If you see the following message in the summary log, you need to uninstall and reinstall SQL Server. You cannot repair the SQL Server instance.

      "SQL Server upgrade failed. To continue, investigate the reason for the failure, correct the problem."

When you repair an instance of SQL Server 2008:

  • All missing or corrupt files are replaced.

  • All missing or corrupt registry keys are replaced.

  • All missing or invalid configuration values are set to default values.

Before you continue, for SQL Server failover clusters, review the following important information:

To repair a failed installation of SQL Server from the Installation Center

  1. Launch the SQL Server Setup program (setup.exe) from SQL Server 2008 installation media.

  2. After prerequisites and system verification, the Setup program will display the SQL Server Installation Center page.

  3. Click Maintenance in the left-hand navigation area, and then click Repair to start the repair operation.

  4. Setup support rule and file routines will run to ensure that your system has prerequisites installed and that the computer passes Setup validation rules. Click OK or Install to continue.

  5. On the Select Instance page, select the instance to repair, and then click Next to continue.

  6. The repair rules will run to validate the operation. To continue, click Next.

  7. The Ready to Repair page indicates that the operation is ready to proceed. To continue, click Repair.

  8. The Repair Progress page shows the status of the repair operation. The Complete page indicates that the operation is finished.

To repair a failed installation of SQL Server using Command Prompt

  • Run the following command at a command prompt:

    Setup.exe /q /ACTION=Repair /INSTANCENAME=instancename

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Duplicate Instructions

It seems odd that steps 1-8 are included twice. I don't see any differences between the first 8 steps and the second grouping. Is this a copy/paste error?

[Tai Yee - MSFT] Yes, unfortunately there is an MSDN bug which is causing the list to be duplicated. The source content that the SQL Server documentation team dropped to MSDN for publishing does not contain this duplication. I filed a bug to MSDN about it, but it looks like the fix will not be available until January 2009, sorry.

More information -- the problem is with lists that are within collapsable sections. If you collapse the list by clicking the list heading ("To repair a failed installation of SQL Server"), one of the duplicated lists is removed, so that is a workaround until the fix gets applied.