Make sure you'd downloaded the right package... there are two ... one for a fresh installation of SSMS and one for Upgrading
and make sure you execute the setup with administrative privileges. (execute as admin)
Fail to install and unintall "Microsoft SQL Server Management Studio with Azure Data Studio"
I tried to install SQL Server but failed many times, then checked online and tried some solutions, like uninstall it and then re-install again, however, I found that I can't even uninstall the "Microsoft SQL Server Management Studio with Azure Data Studio" for re-installing with screenshot for your reference. I tried the methods of changing the permissions in the registry, but I got the same error message when I tried to change them as shown below: " could not open key....."
Is there any other way that I can use SQL or any more suggestions?
(the Chinese in the screenshot just says there is a big error when install this and log file as attached for your reference too.)189223-ssms-setup-enu-20220401104730.log
SQL Server Other
3 answers
Sort by: Most helpful
-
Bjoern Peters 8,921 Reputation points
2022-04-01T15:26:05.73+00:00 -
Bjoern Peters 8,921 Reputation points
2022-04-01T16:49:16.573+00:00 As your log file states that it can't install a package (due to deleting/updating reg-keys) due to missing privileges, this was the first suggestion that could be made, and depending on your environment, UAC can be a mess with installing SQL Server.
So everything worked and you are happy, or still having problems?
If everything is fine now, please mark my answer as helpful, to support others within the community.
-
YufeiShao-msft 7,146 Reputation points
2022-04-04T07:48:32.397+00:00 Hi @Li Ji ,
SSMS can be installed standalone, it is the problem of your SSMS, although it looks like your SQL Server is also having problems
SQL Server Management Studio (SSMS) setup failed or requires restart
Try to uninstall the "Microsoft ODBC Driver 17 for SQL Server" before beginning the SSMS installation :
Close any related applications, including SSMS, Visual Studio, or SQL Profiler.
Go to Control Panel > Add/Remove Programs.
Locate the entry for "Microsoft ODBC Driver 17 for SQL Server" and uninstall. This step may require a reboot.
Begin the SSMS installation. The latest version is available here.About 'Could not Open Key: UNKNOWN\Components……‘, you can refer to this artical: https://blog.sqlauthority.com/2018/04/21/sql-server-fix-error-1402-could-not-open-key-unknowncomponents-system-error-5-another-solution/
-------------
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".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.