【摘要】Failed to generate a user instance of SQL Server due to ...
Error: SQL Express 2008 ERROR: Failed to generate a user instance of SQL Server and |
To correct the problem, I
- Shut down SQL Server Express
- Deleted the users SQL Express directory "%USERPROFILE%\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS"
- Restarted SQL Server Express:
Here's a cmd script for what is needed:
SC.EXE stop "MSSQL$SQLEXPRESS"
CHOICE /C:N /D:N /N /T:5
RD /S /Q "%USERPROFILE%\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS"
SC.EXE start "MSSQL$SQLEXPRESS"