Month End Sale: Get Extra 10% OFF on Job-oriented Training! Offer Ending in
D
H
M
S
Get Now
Clear List of Recent SQL Server Connection From SQL Server Management Studio

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

18 Mar 2024
Intermediate
139K Views
4 min read
Learn via Video Course & by Doing Hands-on Labs

SQL Server Course

Clear List of Recent SQL Server Connection From SQL Server Management Studio: An Overview

While working with SQL Server, we connect to the different data servers. As a result, SSMS has a list of different SQL servers we have used. Sometimes this list creates confusion and we try to make the connection to SQL Server which does not exist or does not have access to. To resolve this issue, we should clear this server list from SSMS.

Read More: SQL Server Interview Questions and Answers

Clear Recent Connection List from SQL Server 2005

First of all, make sure that the SSMS is closed. Now remove or rename the file "mru.dat" from the location "C:\Documents and Settings\\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat" or "C:\Documents and Settings\[user]\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM\mru.dat"

If you are not able to find the file "mru.dat" at the above locations, search this file in the system drive and remove or rename it. After removing or renaming, launch the SSMS and you will not see any of the most recently used servers in the list.

Read More: Basics of SQL Commands

Clear recent connection list from SQL Server 2005

Clear Recent Connection List from SQL Server 2008 or 2008r2

First of all, make sure that the SSMS is closed. Now remove or rename the file "mru.dat" from the location "C:\Documents and Settings\\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin" or "C:\Documents and Settings\[user]\Application Data\Microsoft\Microsoft SQL Server\100\Tools\ShellSEM\SqlStudio.bin"

If you are not able to find the file "SqlStudio.bin" at the above locations then search this file in the system drive and remove or rename it. After removing or renaming, launch the SSMS and you will not see any of the most recently used servers in the list.

Clear recent connection list from SQL Server 2008 or 2008r2

Note

  1. Before removing the above "mru.dat" or "SqlStudio.bin" file, please note down the existing or required SQL Server connections so that you can add this server on the re-open of SSMS.

What do you think?

I hope you will enjoy these tricks while working with SQL Server. I would like to have feedback from my blog readers. If you want to gain a practical understanding, you can enroll in our SQL Server Course.

Do You Know?

.NET is gaining popularity day by day, especially after the release of .NET 8. .NET 8 is not only a framework version but much more than that. It redefines the way software applications are built and deployed, enabling developers to meet the evolving demands of modern computing.

Therefore, if you want to upskill yourselves and stand out from others consider our following training programs on .NET.

Take our Sqlserver skill challenge to evaluate yourself!

In less than 5 minutes, with our skill challenge, you can identify your knowledge gaps and strengths in a given skill.

GET FREE CHALLENGE

Share Article

Live Classes Schedule

Our learn-by-building-project method enables you to build practical/coding experience that sticks. 95% of our learners say they have confidence and remember more when they learn by building real world projects.
Software Architecture and Design Training Jul 28 SAT, SUN
Filling Fast
05:30PM to 07:30PM (IST)
Get Details
.NET Solution Architect Certification Training Jul 28 SAT, SUN
Filling Fast
05:30PM to 07:30PM (IST)
Get Details
Azure Developer Certification Training Jul 28 SAT, SUN
Filling Fast
10:00AM to 12:00PM (IST)
Get Details
Advanced Full-Stack .NET Developer Certification Training Jul 28 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details
ASP.NET Core Certification Training Jul 28 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details
Data Structures and Algorithms Training with C# Jul 28 SAT, SUN
Filling Fast
08:30PM to 10:30PM (IST)
Get Details
Microsoft Azure Cloud Architect Aug 11 SAT, SUN
Filling Fast
03:00PM to 05:00PM (IST)
Get Details
Angular Certification Course Aug 11 SAT, SUN
Filling Fast
09:30AM to 11:30AM (IST)
Get Details
ASP.NET Core Project Aug 24 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details

Can't find convenient schedule? Let us know

About Author
Shailendra Chauhan (Microsoft MVP, Founder & CEO at Scholarhat by DotNetTricks)

Shailendra Chauhan is the Founder and CEO at ScholarHat by DotNetTricks which is a brand when it comes to e-Learning. He provides training and consultation over an array of technologies like Cloud, .NET, Angular, React, Node, Microservices, Containers and Mobile Apps development. He has been awarded Microsoft MVP 8th time in a row (2016-2023). He has changed many lives with his writings and unique training programs. He has a number of most sought-after books to his name which has helped job aspirants in cracking tough interviews with ease.
Accept cookies & close this