Installation of a new instance of SQL Server 2019 developer edition related problems

Copper Contributor

I am learning to work with SQL server 2019. I am new to SQL. I am learning from here

During the installation I got some errors. 

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

Cannot find the user 'DESKTOP-QGVGUB6\PdwComputeNodeAccess', because it does not exist or you do not have permission.
Changed database context to 'DWConfiguration'.
 
Script version: 107
Version_History table created.
Currently stored version: 0
Need to run SP and insert value into the version_history table: 107
Database name is: DWConfiguration
Current Version:0
Database name is: DWDiagnostics

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=0x7590AFD6%25400x9A41B222

------------------------------
BUTTONS:

&Retry
Cancel
------------------------------

 

Then another error 

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

Cannot find the user 'DESKTOP-QGVGUB6\PdwComputeNodeAccess', because it does not exist or you do not have permission.
The WITH MARK option only applies to the first BEGIN TRAN WITH MARK statement. The option is ignored.
Changed database context to 'DWConfiguration'.
 
Script version: 107
Currently stored version: 0
Need to run SP and insert value into the version_history table: 107
Database name is: DWConfiguration
Current Version:0
Database name is: DWDiagnostics

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=0x7590AFD6%25400x9A41B222

------------------------------
BUTTONS:

&Retry
Cancel
------------------------------

 

This was a fresh install. To fix Fix Wmi performance counters I read here  https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/rebuild-performance-counter...

but now as per instructions in Windows install disc I did not get to see 

any i386 folder in Windows installation disc available to me. 

searched for perfc009.da_ 

Now I tried second thing editing registry values as explained on above link https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/rebuild-performance-counter...

tried running 

 lodctr /r in system32 

and read here 

From the link "Cannot load Counter Name data..." error message appears when manually installing TMSMMainService.exe - Apex One (Mac) (trendmicro.com)

https://success.trendmicro.com/solution/000152298

but since I could not fix any thing so I I used revo uninstaller (trial version) to uninstall every thing because from control panel I was not able to uninstall.

This time again a fresh installation I tried 

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

No mapping between account names and security IDs was done.


Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=0x0F90E2F6%25400xDC80C325

------------------------------
BUTTONS:

&Retry
Cancel
------------------------------

 

and another error 

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

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.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=0xA60E3551%25400xD3BEBD98%25401211%25401

------------------------------
BUTTONS:

OK
------------------------------

 

Installation succedded with failure in 

Database engine services

SQL Server Replication

Analysis Services

Distributed Replay controller

Client tools backward compatibility

Client tools connectivity

Scale out worker

Scale out master

Integration Services

all above failed at the end of installation

Then as suggested on this forum 

 

I had tried 

 

Rebuilding the counters:

     cd c:\windows\system32

     lodctr /R

     cd c:\windows\sysWOW64

     lodctr /R

 

I did not tried below 

 

Resyncing the counters with Windows Management Instrumentation (WMI):

     WINMGMT.EXE /RESYNCPERF

Stop and restart the Performance Logs and Alerts service. 

Stop and restart the Windows Management Instrumentation service.

Create a new Data Collector Set (do not use an existing Data Collector Set).

 

because I could not understand instructions.

searched on internet.

with this link https://www.thewindowsclub.com/how-to-repair-or-rebuild-the-wmi-repository-on-windows-10

I did

 

C:\Windows\system32>lodctr /R

Info: Successfully rebuilt performance counter setting from system backup store
C:\Windows\system32>winmgmt /verifyrepository
WMI repository is consistent

 

so it seems WMI repository is fine.

I however uninstalled all instance of SQL Server 2019 what ever I could see in Control Panel program and features.

Again started installing from scratch. I got validation error. While installing SQL server 2019 developer edition this  time. 

I now did following

1. Uninstall all SQL Server components you can using Control Panel -> 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

4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.

5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.

6. Deleted all the SQL Server folders in the computer C:\Program Files\Microsoft SQL Server and subfolders.

I started a fresh installation. Now I get following errors during installation

error 1

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

Unable to open registry key: 'Software\Microsoft\Microsoft SQL Server\150\Bootstrap', registry may be corrupted.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.2000.5&EvtType=0x935EEB66%25400xBC33138D%25401236%25402

------------------------------
BUTTONS:

OK

 

 

 

error2

 

TITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

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.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.2000.5&EvtType=0xA60E3551%25400xD3BEBD98%25401211%25401

------------------------------
BUTTONS:

OK

 

error 3

 

ITLE: Microsoft SQL Server 2019 Setup
------------------------------

The following error has occurred:

PerfLib 2.0 counter removal failed with exit code 2. Command line: C:\Windows\system32\unlodctr.exe /m:hkengperfctr.xml from directory C:\Program Files\Microsoft SQL Server\150\Shared\.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&Evtsrc=setup.rll&EvtID=50000&ProdVer=15.0.2000.5&EvtType=0x590D6427%25400x24BDAA65%25401260%25401

------------------------------
BUTTONS:

OK

 

I am not able to understand What should I do more now.

This is a fresh install and I am new to SQL.

 
1 Reply
Ok I have been able to solve this. First I uninstalled every thing using an revo uninstaller and scanned for left over items of registry and empty folders with revo uninstaller. Then
For fresh installation
I did 2 things..
1) the installation files meaning exe and cab files of SQL Server I had extracted from the downloaded iso had blank space in name
C:\Users\koidera\arbit_user\softwares\sql server\exe and cab files of sql server 2019
I changed this to
C:\Users\koidera\arbit_user\softwares\sql_server\exe_and_cab_files_of_sql_server_2019
2) I was double clicking the setup file as normal user what I should have been doing is run as admin.
Every thing has worked perfectly this time
and every thing is installed all with green ticks.