Unable to install SQL Server. Exit code (Decimal): -2147467259

gianlucaast 80 Reputation points
2023-01-21T16:53:15.7633333+00:00

I am trying to install SQL Server Express. [https://www.microsoft.com/en-ca/download/details.aspx?id=101064

I tried to install it, and then after a few minutes i get this error:

Unable to install SQL Server. Exit code (Decimal): -2147467259

Im not sure what the issue is, or if anyone is able to help as theyve had this issue before. thanks

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,013 questions
{count} votes

2 answers

Sort by: Most helpful
  1. José Antonio Campero Morales 105 Reputation points
    2023-02-28T01:52:15.8666667+00:00

    The error code -2147467259 indicates that there was an unspecified error during the installation process. Here are some steps you can try to resolve the issue:

    1. Check if your system meets the minimum system requirements for SQL Server Express. You can find the requirements on the download page you provided. Ensure that your system meets all the requirements.
    2. Make sure that your system is up to date with the latest updates and patches. Install any pending updates and try the installation again.
    3. Disable any antivirus software and/or firewall temporarily during the installation process. Sometimes these programs can interfere with the installation process and cause errors.
    4. Check the installation log files to identify the specific error message that is causing the installation to fail. The log files are typically located in the %ProgramFiles%\Microsoft SQL Server\150\Setup Bootstrap\Log folder. Look for any error messages or warnings in the log files.
    5. If none of the above steps resolve the issue, you may want to try downloading and installing a different version of SQL Server Express,

  2. Seeya Xi-MSFT 16,471 Reputation points
    2023-03-24T08:41:03.74+00:00

    Hi @gianlucaast ,

    (01) 2023-03-24 09:55:48 Slp: The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.

    Please refer to this thread:

    https://stackoverflow.com/questions/63636622/sql-install-error-the-mof-compiler-could-not-connect-with-the-wmi-server

    You can download this troubleshooter. It help you automatically repair issues when you're blocked from installing or removing programs. It also fixes corrupted registry keys.

    There is another way.

    Please follow the below steps to remove all components of previous installed SQL Server completely:

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit:

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer

    1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    3. Reboot the machine

    In addition, please use an administrator account to reinstall SQL Server on your computer(Right click->run as administrator).

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

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.