SQL Server Management Studio typically takes a minute or so to start on my machine. I just figured it was a slow app, but then I saw it load much faster on another machine. Searching for a solution led me to Microsoft SQL Server Management Studio is too Slow (archive.org), which nicely solved the problem. Now it starts up in five seconds.
As the link may be broken in the future, I will transcribe the solution below:
In a corporate environment it is not uncommon for Microsoft SQL Server Management Studio (SSMS) for SQL Server to take over 45 seconds to start as well as lags and delays when opening various windows and dialog boxes from within the application. If you are experiencing this issue, then a quick fix is to add an entry in your HOSTS. file that points crl.microsoft.com to 127.0.0.1
- Exit SSMS
- Press the keys [Win] + [R]
- Enter the following..
- notepad %systemroot%\system32\drivers\etc\hosts.
- Append the following..
- 127.0.0.1 crl.microsoft.com
- Save the file.
- Start SSMS (ah! much better)
The reason why it is slow is because .Net Runtime tries to contact crl.microsoft.com to ensure that the certificate in various .Net packages that were shipped with SSMS is valid.
If you are behind a firewall/proxy as is the usual case then there is no direct route out to the internet to crl.microsoft.com to validate the certificate(s) and it eventually times out. The wait for the time out causes the delay for each and every package it checks.
With the change to the HOSTS. file, you are forcing the certificate checks to crl.microsoft.com to route to the local host which immediately fails and the certificate checks are ignored.
The other option is to disable "Check for publisher’s certificate revocation" option in IE Advanced Options, however, this is not advised.
https://doughennig.blogspot.com/2022/01/speeding-up-sql-server-management.html
Comments
Post a Comment