When receiving this error message: ”
Error : Your SQL Server installation is either corrupt or has been tampered with (Error getting instance ID from name.). Please uninstall then re-run setup to correct this problem
, it is likely you are trying to start SQL Server as a regular binary or as a service without any command line parameter.
Contrary to this troubleshooting post, this may happen also when you have a single SQL Server instance on your machine.
The trick is to always use the -s switch to specify the instance name.
Please note that in this context, the instance name does not include the server name. Therefore a MYSERVER\MYSQLSERVERINSTANCE standard notation should be translated into:
sqlservr.exe -s MYSQLSERVERINSTANCE
I have done this but I still receive the same error message. The following command (in PowerShell) leads to this message:
PS C:\Program Files\Microsoft SQL Server\130\LocalDB\Binn> .\sqlservr.exe -s MYSQLSERVERINSTANCE
The troubleshooting link is down.
Regards
Try from cmd, not Powershell