Repair/Remove/Install processes for SQL Server 2012 Express get stuck or hung

前端 未结 7 1760
清歌不尽
清歌不尽 2021-01-02 05:16

An instance of SQL Server 2012 Express became corrupted somehow.
I suspect it was related in some way to my use of Entity Framework, but have no proof yet.

When

7条回答
  •  独厮守ぢ
    2021-01-02 05:54

    Here's what worked for me.

    Solution 1:
    - Stop the "SQL Server (SQLEXPRESS)" & "SQL Server VSS Writer" services and set their Startup Type to "Manual".
    - Restart the PC.
    - Run the repair process.
    - Change the Startup Type back to "Automatic" and restart the services.

    Solution 2:
    - Stop the "SQL Server (SQLEXPRESS)" & "SQL Server VSS Writer" services and set their Startup Type to "Disabled".
    - Restart the PC.
    - Run the Remove process to uninstall SQL Server Express entirely (instance + shared components).
    - Restart the PC again.
    - [Optional] Run your favorite registry cleaner such as CCleaner.
    - Install SQL Server Express (unless your goal was just to uninstall it).

    NOTE: In the Solution 2 scenario, I tried the Repair process after the 1st PC restart, but it got stuck at step SqlEngineConfigAction_repair_validation_Cpu64.

提交回复
热议问题