Attempted to perform an unauthorized operation when executing SQL Server 2019 service pack - sql-server

I already had SQL Server 2019. After upgrading my Windows 10 to latest October Update, I found my SQL Server does not have latest service packs.
I downloaded latest service pack CU8 from Microsoft and ran it. After initializing set up, I get error
Attempted to perform an unauthorized operation
Many research and no luck even in SO.
Please advise.

https://www.microsoft.com/en-us/edge/business/download
Please get the offline installer for latest Microsoft Edge (Chromium) on above link.
Once you have it, run Edge installer and then try to run SQL Update again.
This worked. I ran the latest Edge standalone install and it unblocked the MSSQL patch.
I also confirm that it works. Thanks
https://www.microsoft.com/en-us/edge/business/download
I can confirm this fixes the issue when trying to install SQL 2014 Express Advanced on Windows 10 with H2 update installed.
I had the same error, and installing the standalone Microsoft Edge fixes the error.

After reviewing the logs and digging into windows registry and security, I found the problem was "Microsoft Edge" registry key. Somehow it is read-only for administrator and I figured it out I need to use SYSTEM account to apply the service pack.
Finally I found I can do that using an executable in SysInternals package which is famous for doing weird things in Windows.
This is what I did to apply the service pack.
Run Cmd or PowerShell as Administrator
Go to SysInternals and make sure you have the PsExec64.exe there
Run below command:
.\PsExec64.exe -sid "D:\Downloads\SQLServer2019-KB4577194-x64.exe"
This way you will execute the service pack using SYSTEM account which has highest privilege.
Service pack installed successfully!

Related

SQL server doesn't install

What we know / I've tried so far:
It failed during installation. Everything else seems to be installed correctly except for "Database Engine Services" (Ignoring server replication).
The installer sent me here, but this solution doesn't seem to work either.
The SQL Server service doesn't start.
The following screenshot is what I see when I click on the repair:
Looking through the logs, this is the repair error description: The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
Thank you!
I couldn't install SQL Server 2019 Developer as well because of other reason below:
A computer restart is required. Please restart your computer and try
the Basic installation again.
So, I restarted my Windows PC, then I could install SQL Server 2019 Developer.

SQL Server Data Tools: One or more issues caused a failure

I have a problem to install SQL Server Data Tools (SSDT), I get the following error:
One or more issues caused the setup to fail. Please fix the issues and then retry setup.
Bellow I added the log file.
https://drive.google.com/file/d/0B0baRS5dYAX_U0RibGhGd19qVnc/view?usp=sharing
I have Windows Server 2012 R2 and SQL Server 2012. I installed SSDT is from this page - https://msdn.microsoft.com/en-us/mt186501 - SSDT in Visual Studio 2015
Can anyone help with this cause?
The failure is due to the VS2015 Isolated shell returning an error. You can run this yourself and see if it succeeds (in which case SSDT install should proceed OK) or fails, in which case you should see a good error message.
To get the shell installer run "SSDTSetup.exe /layout" from the command line. This will copy all dependencies onto your machine in a payload folder beside the setup installer. You can then run the vs_isoshell.exe installer yourself.
Install 'VS_ISOSHELL.exe' first. You can find it in the directory PAYLOAD/X86.
After the installation run SSDTSETUPD.exe. It should be working properly now.
User MLGuy's answer solved it for me: Disable IE Enhanced Security Configuration and rerun the installer.
SQL Server Data Tools 2015 installation error

DISM fails after SQL Silent install

I am working with an Installscript Project and i have a few features that the user can install. When the user selects to install both SQL Server Express 2008 and a webclient application, DISM is failing.
SQL install runs first and installs with no issues, the Webclient installs second and first uses DISM to enable my required IIS components. The problem is that it seems like the SQL install has something open that is causing the DISM app to fail. I look in the log file and i see multiple lines stating "DISM Manager: PID=4000 Failed to create the image session process. A process is already servicing the image. - CDISMManager::CreateImageSession(hr:0x800700b7)"
If i omit installing the SQL server then the DISM tool works as it should with no issues at all. I have not been able so far to figure out what is causing the failure with SQL..
Is this a pure InstallScript project or a InstallScript MSI project? The behavior you report sounds suspiciously like the latter, where running SQL Server Express 2008 R2 will drop the MSI handle after it performs its own checks for supported operating system. I cannot say for sure though if this is the issue you are encountering.
Another thing I would try myself is enabling the UI for the install of SQL Server 2008 by removing the /Q parameter and see if the install is somehow reporting that it is complete too soon.
What do the logs from SQL Server report?

Can't get Remote Desktop Services installed on Windows 2012 server

I am trying to install Remote Desktop Services on my dedicated Windows 2012 server but the installation does not start at all. It just stays here:
I have tried restarting the server 2 times and I have run every Windows Update there is. I have tried selecting other features but it will not start the installation. I had it running for hours but it would not install at all (just as the screenshot) and I had to cancel it.
Can any one help me on how to get Remote Desktop Services installed somehow or another? Is there another way to get it installed? I am not in this case installing remotely.
This guide to install via the Powershell seems to help:
http://blogs.technet.com/b/manojnair/archive/2011/12/02/rds-powershell-tfm-part-i-installing-remote-desktop-role-services.aspx

SQL Server 2008 R2 Install Won't Work

I'm trying to install the developer edition of SQL Server 2008 R2. I run the setup as admin, but after it installs the "Setup Support Files", it closes and returns back to the installation center screen.
Any ideas?
I had this same problem and it appears to be something to do with previous versions leaving behind elements in their install/uninstall. I fixed it by running the Microsoft install/uninstall utility linked below. During the process you are asked what program you are trying to install and MSSQL Server 2008 R2 is listed. After running this the install continued after the "Setup Support Files" stage. Hope it helps!
http://support.microsoft.com/mats/Program_Install_and_Uninstall
So does it even installs Support files? You can check it by looking into "Programs and Features" (if using Windows Vista or 7) and if it is not there then it is not even installing support files. In that case may be you are missing components required for Support files itself (e.g. older version of Windows Installer).
Sometimes, SQL Server installer itself acts funny and without any reason it just crashes. Did you tried to run it again? Or try to run the installer after rebooting your system (I know this sound like a too rookie advice but in many cases rebooting OS solves issue).
The problem started when I change the shared folder directory from \Program Files(86)\SQL Server to custom folder. If I could have rename back to default, it should have been fine but I stop the installation and restart the install again assuming it will install fresh, but it did not and it hangs all the time.
I appreciate the comment from Lee, as per his advice I ran the fix it tool from Microsoft. The tool finds SQL Server 2008 R2 installed and I choose to uninstall.
When re-install the SQL Engine, it went through because this time, I did not change the Share Folder location and leave it to the default. I think this is some kind of bug in the SQL Installation. I wonder why Installation has to hang...!
The problem might be the location of the Setup Support Files.
Remove all the Setup Support Files using Control Panel/Uninstall Program.
After that install SQL 2008 from the beginning.

Resources