Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides information on how to troubleshoot SQL Server Management Studio (SSMS).
Capture logs
There are multiple logs that can be captured within SSMS using the Output window.
- Go to Tools > Options > Output Window.
- Enable the relevant channels. For a description of the channels, see Options (Output Window - General).
- Select OK.
- If necessary, restart SSMS.
- Select View > Output to display the Output window.
- Complete the steps or task for which you want to capture logs.
- Save the output from each channel to its own
.txtfile.
Enable verbose logging
The information logged from SSMS doesn't always provide enough detail for troubleshooting, and verbose logging can be enabled to capture more details.
Determine the location of the SSMS executable (
ssms.exe). The default location for SSMS 21 isC:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\IDE, but might be different on your machine.Open a command prompt and run the following two commands, using the
ssms.exelocation in the previous step for the second line.SET VsLogActivity=1 "C:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\IDE\ssms.exe"SSMS starts.
Open Windows Explorer and navigate to %USERPROFILE%\AppData\Roaming\Microsoft\SSMS.
Close SSMS to stop the verbose logging.
Find the folder with the most recent date. Within that folder, inspect the ActivityLog.xml file, which now contains more details that can assist with troubleshooting.
Clear SSMS cache files
Data stored in cache files might unexpectedly interfere with SSMS behavior. To rule out this problem, you can clear the files manually.
Close all instances of SSMS.
Remove all files in the following folders, after making a copy of the
RegSrvr*.xmlfile to retain any entries under Local Server Groups in Registered Servers.%USERPROFILE%\AppData\Local\Microsoft\SQL Server Management Studio%USERPROFILE%\AppData\Roaming\Microsoft\SQL Server Management Studio
Start SSMS and observe if removing the cache files resolved the issue.
Clear Microsoft Entra ID token cache
SQL Server Management Studio (SSMS) caches Microsoft Entra ID tokens briefly. When a user is added to a Microsoft Entra ID group and immediately tries to authenticate from SSMS, the following error message is thrown:
Login failed for user '<token-identified principal>'.
(Microsoft SQL Server, Error: 18456)
If you recently obtained access to a server, you can clear the Microsoft Entra ID token cache from Help > Clear Entra ID Token Cache.
The following dialog describes why this option is useful if you recently received access to a server and require re-authentication.
Share the information
To share log information with the SSMS Team, create a feedback item on the SSMS user feedback site.
Attach the log files to the feedback item. The files can be submitted using a private message so they aren't publicly available.
Important
Log files might contain sensitive information.