重裝了系統以后,因為機器上的VS2010文件有問題,所以先裝了SQL SERVER 2012,只有才安裝了VS2010和VS2012。看起來都很正常,結果發現SSMS怎么都啟動不了,重裝SQL SERVER也不行,一直懷疑是卸載了什么關聯的組件引起的。
DBA直接給了一個解決方案,馬上就解決了。
• Start regedit.exe
• Go to HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio
• Delete 11.0_Config
• Restart ssms.exe
There is a similar problem in this feedback to Microsoft, please refer to it:
http://connect.microsoft.com/VisualStudio/feedback/details/690773/after-installing-visual-studio-11-my-sql-server-denali-cannot-be-opened
參考文章里的一段話:
This happens after installing SQL Server 2012 (Code named "Denali CTP3") or later, running SSMS successfully, then (later) install VS11 Dev Preview, and then run SSMS.
Dev11 Preview improperly recognize SQL Server Denali SSMS as a version 11 application and it updates the current user’s setting in SSMS registry key during the setup. This issue occurs only when Dev11 Preview is installed after the installation of SSMS.
SQL Server 2012 SSMS has a built-in security and resiliency feature for any corrupted configuration in HKCU registry key. The corrupted registry keys can be simply deleted then SSMS automatically reconstructs it with correct values during the next startup procedure.
• Start regedit.exe
• Go to HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio
• Delete 11.0_Config
• Restart ssms.exe