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.
In this article, you learn how to capture diagnostic information to troubleshoot a crash or an unresponsive system that you experience in SQL Server Management Studio (SSMS).
Get a full memory dump after an unresponsive system or crash
Get a full memory dump of SQL Server Management Studio (SSMS) when it stops responding or crashes.
To capture diagnostic information to troubleshoot a crash or an unresponsive SSMS, use the following steps:
Download ProcDump.
Unzip the download into a folder.
Open a Command Prompt (such as
cmd.exe
), and run the following command.<PathToProcDumpFolder>\procdump.exe -e -h -ma -w ssms.exe
It should prompt you to accept a license agreement, select Agree.
Start SQL Server Management Studio (SSMS) if not started already.
Reproduce your issue.
Wait as the text appears in the cmd prompt about writing the dump file, don't proceed until it finishes.
Create a new folder and copy the *.dmp file that is written out to that folder.
Copy the following files into the same folder.
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll"
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll"
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
Zip up the folder.
Get a full memory dump using Visual Studio
There are scenarios where trying to capture a full memory dump for SSMS doesn't generate the expected output, and it requires advanced troubleshooting.
The following steps require Visual Studio(Community Edition or higher) to be installed.
To capture a diagnostic information with Visual Studio to troubleshoot a crash or an unresponsive SSMS, use the following steps:
- Open Visual Studio.
- Select Continue without code to open an empty window.
- Start SSMS, if it's not already open.
- Select Debug > Attach to Process....
- In the Attach to Process dialog, within the Filter processes box, enter SSMS.
- In the list of processes select SSMS.exe and then Attach.
- An Output window appears, with Debug selected for Show output from:.
- Recreate the problematic behavior in SSMS.
- Once SSMS closes, select Debug > Save Dump As... in Visual Studio and save the
.dmp
file to a folder. - Zip up the folder.
- Stop debugging before closing Visual Studio.
OutOfMemoryException
You can also get the Full Memory Dump of SSMS when it throws an OutOfMemoryException (can be any managed exception).
To capture diagnostic information to troubleshoot an OutOfMemoryException from SSMS, use the following steps:
Download ProcDump.
Unzip the download into a folder.
Open Command Prompt and run the following command.
<PathToProcDumpFolder>\procdump.exe -e 1 -f System.OutOfMemoryException -ma -w ssms.exe
It should prompt you to accept a license agreement, select Agree.
Start SQL Server Management Studio if not started already.
Repro the issue.
Wait as the text appears in the cmd prompt about writing the dump file, don't proceed until it finishes.
Create a new folder and copy the *.dmp file that is written out to that folder.
Copy the following files into the same folder.
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll"
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\SOS.dll"
- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll"
Zip up the folder.
Share the information
To share information with the SSMS Team, create a feedback item on the SSMS user feedback site.
Attach the memory dump to the feedback item. The dump file can be submitted using a private message so they are not publicly available.
Important
Memory dump files may contain sensitive information.