How to install SQL server and SSMS on Windows 10?

Mandeep Singh 0 Reputation points
2024-03-03T05:02:59.5866667+00:00

I have downloaded the correct files from this link and trying to install a SQL server Express edtion alongwith SQL server management studio but the installation is getting failed evertime I try to install.

https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16

SQL Server Management Studio - As soon as I begin the installation, the sytem recognises the click and asks me to run the .exe file and then nothing happens after a few seconds. I have tried this over 20 - 25 times now. I have chcked if any antivirus is trying to stop the program but cannot find the reason why it is constantly being stopped from the background process. I feel that some unwanted program is trying to stop the installation, but I don;t know how to figure that out.

Also, I have installed the most recent .NET framework as well but that did not help either.

For SQL Server Express setup I am getting this error:

TITLE: SQL Server Setup failure.


SQL Server Setup has encountered the following error:

Exception has been thrown by the target of an invocation..

For help, click: https://go.microsoft.com/fwlink?LinkID=2209051&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&EvtType=0xE8049925%25400x42B4DED7


BUTTONS:

OK

Can someone help me to get it installed on my laptop?

Thank you

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,670 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 36,116 Reputation points
    2024-03-04T05:40:40.4533333+00:00

    Hi @Mandeep Singh,In the detail log we can see this.

    Unable to open hklm registry key SOFTWARE\Microsoft\MSSQLServer, error The system cannot find the file specified.

    If you use installationpath C:\SQL2022\Express_ENU\x64\setup, system may not find key.

    Please try with default path like C:\Program Files\Microsoft SQL Server.

    If this does not work, try to first clear uninstall the SQL Server and then install it.

    Use process monitor to get more trace with setup.exe&senarioengine.exe.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Mandeep Singh 0 Reputation points
    2024-03-05T02:05:16.0533333+00:00

    Hi @ZoeHui-MSFT I have changed the installation path as well (C:\Program Files\Microsoft SQL Server) but it's still showing me the same error. Sending a screeenshot of the problem below, does this indicate something in particular that can rectify this?

    Process Monitor log file.PNG

    Process Monitor log file

    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.