Clear List of Recent SQL Server Connections From SQL Server Management Studio

Keep your SSMS connection dialog clean and free of outdated server entries.

Over time, SQL Server Management Studio (SSMS) builds up a long list of servers you've connected to. If you've changed jobs, retired old servers, or just want a cleaner dropdown, here's how to clear that recent connections list safely.

Method 1: Remove Individual Entries

Open the Connect to Server dialog, click the dropdown arrow next to the server name field, hover over the entry you want to remove, and press Delete on your keyboard. This removes a single entry without touching the rest of your history.

Method 2: Clear Everything via the Registry

To wipe the entire history at once, SSMS stores its recent connections in the Windows Registry.

  1. Press Win + R, type regedit, and hit Enter
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\<version>\SSMS
  3. Delete the keys named MRU under the relevant sub-folders
⚠️ Caution: Always back up the registry key before deleting anything, and close SSMS first so it doesn't recreate the entries on exit.

Method 3: Delete the Settings File

SSMS also caches connection info in a local .bin file, typically found at %AppData%\Microsoft\SQL Server Management Studio\<version>\SqlStudio.bin. Closing SSMS and deleting this file resets the recent connections list entirely.

When Should You Clear This List?

  • Before handing over a laptop or shared workstation
  • After decommissioning old development or test servers
  • When troubleshooting stale cached credentials

A tidy connections list isn't just cosmetic — it also reduces the risk of accidentally connecting to (or exposing) a server you no longer use.

Where SSMS Keeps the History in Different Versions

The exact location of the saved server list depends on which release of SQL Server Management Studio you run. Older releases (up to roughly version 17) wrote the history into the binary SqlStudio.bin file. Newer releases moved it into a readable XML file, usually named UserSettings.xml, inside a version-numbered folder under %AppData%\Microsoft\SQL Server Management Studio.

Because the folder name changes with each major version, the quickest way to find the right file is to search for it instead of guessing the path. The PowerShell command below lists every settings file for the current Windows user.

Get-ChildItem "$env:APPDATA\Microsoft\SQL Server Management Studio" -Recurse -Include UserSettings.xml, SqlStudio.bin |
    Select-Object FullName, LastWriteTime

If several versions are installed side by side, each one has its own folder and its own list. Clearing one does not touch the others.

A Safe Reset Routine, Step by Step

  1. Close every open SSMS window. SSMS writes its settings when it exits, so an open window can put the old entries straight back.
  2. Locate the settings file with the command above and copy it to a backup folder.
  3. Rename the original (for example to UserSettings.old.xml) instead of deleting it. Renaming is easy to undo.
  4. Start SSMS. It creates a fresh settings file with an empty server dropdown.
  5. Connect once to each server you still need, so the useful entries come back.

For the XML file, a gentler option exists: open the backup in a text editor, find the block that lists your server names, and remove only the unwanted ones. Edit a copy, keep the structure valid, and replace the original only while SSMS is closed.

Side Effects to Expect

Resetting the whole settings file does more than empty the dropdown. It can also clear other preferences, such as saved login names, the "Remember password" choices and some window or editor options. Plan for a few minutes of re-configuration after a full reset.

ApproachWhat it removesBest for
Delete key in the dropdownOne server entryRemoving a typo or a retired server
Edit the XML copySelected entriesKeeping most history but dropping a few names
Rename the settings fileAll history and other preferencesHanding over a machine or fixing a corrupt profile

Common Mistakes and a Quick Checklist

  • Editing while SSMS is running: your changes are overwritten when the program closes.
  • Clearing the wrong version folder: check which version you actually launch from the Help, About window.
  • Forgetting saved passwords: on a shared or handed-over laptop, make sure no stored SQL logins remain. Removing the server entry with the Delete key also drops its remembered credential.
  • Skipping the backup: a renamed or copied file lets you roll back in seconds.

Takeaway: close SSMS, back up, then remove either single entries or the whole file, and reconnect to the servers you still use.

Ready to go beyond the basics?

Get hands-on training, live mentorship, and placement support with Uncodemy's Data Analytics Course.

Explore Data Analytics Course →