How to Generate a "dump_crash" for SSMS, Including Add-in Tools

How to Generate a "dump_crash" for SSMS, Including Add-in Tools

If SQL Server Management Studio (SSMS) crashes, it’s possible to configure your system to automatically generate a memory dump file. This file is essential for identifying issues related to both SSMS and integrated tools such as SQL Complete. This article explains how to configure Windows to capture crash dumps for ssms.exe using the Windows Error Reporting (WER) registry settings.

This method is compatible with all major SSMS builds, including installations performed using the SSMS installer or the latest SSMS 21 download.

Steps to Configure Automatic Dump File Creation for SSMS

1. Open the Registry Editor
  1. Press Start, type Regedit, and press Enter to open the Registry Editor.
2. Navigate to the Following Path
  1. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting
3. Create a New Key
  1. In the Windows Error Reporting folder, right-click and select: New > Key
4. Name the New Key LocalDumps
  1. Within LocalDumps, create a new subkey: ssms.exe — this is the executable for SQL Server Management Studio.
5. Add the Following Values to the ssms.exe Key

NameTypeDataDescription
DumpFolderString ValueD:\SSMS_CrashesFolder where the dump files will be saved.
DumpTypeDWORD (32-bit) Value2Value 2 indicates a full dump.
CustomDumpFlagsDWORD (32-bit) Value1124Additional custom dump configuration.


Instructions for Adding Values

1. Create the DumpFolder Value
  1. Select the newly created ssms.exe subkey.
  2. Right-click on the right pane and choose: New > String Value
  3. Name it: DumpFolder
  4. Double-click and set the data to: D:\SSMS_Crashes
2. Create the DumpType Value
  1. Right-click again on the right pane: New > DWORD (32-bit) Value
  2. Name it: DumpType
  3. Double-click and set the data to: 2
3. Create the CustomDumpFlags Value
  1. Right-click again: New > DWORD (32-bit) Value
  2. Name it: CustomDumpFlags
  3. Double-click and set the data to: 1124

Final Result

After setup, the registry path should appear as:
  1. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\ssms.exe

Once SSMS (and any add-in, such as SQL Complete) crashes, a dump file will be automatically saved to the folder specified in DumpFolder. You can then forward the file for analysis or technical support via our contact form.