For all versions of SQL Server, this can be fixed safely with no loss of data including any plugins that may be installed and their data.
This is a common bug, and the solution in all versions of SQL Server is to repair the 'Microsoft Visual Studio 20xx Shell (Isolated)' program installation, which takes about 30 minutes to run unattended.
To perform the repair, please complete the following steps:
- Close all instances of Visual Studio.
- Press the Windows key.
- Type 'Programs'.
- Click 'Add or Remove Programs' from the list that appears.
- Type 'Shell' into the Search box that appears.
- Click 'Microsoft Visual Studio 20xx Shell (Isolated)'*
- Click Modify (If greyed out then click Uninstall).
- In the window that appears, click 'Repair'.
- Wait 30mins or so for repair to complete.
- Restart machine.
'Microsoft Visual Studio 20xx Shell (Isolated)' will now be repaired and SQL Server Management Studio should open as normal.
* If there are multiple version(s) of 'Microsoft Visual Studio 20xx Shell (Isolated)' installed, then repair the latest one first, working backwards through versions until the correct program is repaired. Be sure to make a note of the version that fixed your version of SQL Server for future reference as it will not change until smss or vs is upgraded.