The problem that SQL Server cannot be reinstalled due to unclean deletion can be solved by the following steps: manually delete files and registry entries; use SQL Server installation and uninstallation tools; use third-party uninstallation tools; check Windows Event Viewer; Restart the computer; reinstall SQL Server.
How to deal with the problem that SQL Server cannot be reinstalled due to incomplete deletion
Problem:SQL Server is not cleanly deleted and cannot be reinstalled.
Solution:
1. Manually delete remaining files and registry keys
C:\Program Files\Microsoft SQL Server
and delete all related folders.C:\Program Files (x86)\Microsoft SQL Server
and delete all relevant folders.Open the Registry Editor (regedit
) and delete the following subkeys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server
2. Using SQL Server Installation and uninstallation tool
3. Use a third-party uninstall tool
4. Check Windows Event Viewer
eventvwr
).5. Restart the computer
6. Reinstall SQL Server
Note:
The above is the detailed content of What should I do if sqlserver cannot be deleted and cannot be reinstalled?. For more information, please follow other related articles on the PHP Chinese website!