10

I have a number of "old" servers or server names with a typo in them that keep showing up in my dropdown list of server in the "Connect to Database" dialog of SQL Server Management Studio:

enter image description here

Where are those names stored?? Is there any way to clean up that list and remove some entries??

10

For SQL 2005:

C:\Documents and Settings\<USER>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat

For SQL 2008:

C:\Documents and Settings\<USER>\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin

So...

  1. Shut down all instances of SSMS
  2. Delete/Rename the file
  3. Open SSMS

Edit: on MS Connect https://connect.microsoft.com/SQLServer/feedback/details/424800

  • Thanks - there's no way / utilty to peek inside those files and selectively delete out a single entry or two?? – marc_s Jun 9 '11 at 7:20
5

When upgrading from one version of SQL Server Management Studio to another, e.g. 2014 to 2016, you can copy the SqlStudio.bin file from one directory to another and all of your connections will migrate to the new version.

  1. Shut down all instances of SSMS.
  2. Rename SqlStudio.bin to SqlStudio.bin.saved in "C:\Users\<username>\AppData\Roaming\Microsoft\SQL Server Management Studio\13.0\".
  3. Copy the SqlStudio.bin file from "C:\Users\<username>\AppData\Roaming\Microsoft\SQL Server Management Studio\12.0\" to "C:\Users\<username>\AppData\Roaming\Microsoft\SQL Server Management Studio\13.0\"
  4. Now open SSMS 2016 and you should see all of your old connections from SSMS 2014.

Note: If this doesn't work, you can delete the SqlStudio.bin file in the ...\13.0\ directory and rename SqlStudio.bin.saved to SqlStudio.bin to restore your old configuration.

  • 1
    This no longer seems to work for 13.0 to 14.0. Probably the .bin file format changed. – crokusek Jan 4 at 23:52
2

To remove all entries for new SQL 2014, you need to delete file:

C:\Users\(USER)\AppData\Roaming\Microsoft\SQL Server Management Studio\12.0\SqlStudio.bin
0

I know I'm many years late on this one. But I just thought I would post up an answer for others that may come this way.

You can use the delete key on your keyboard to remove them. I don't know what versions of SSMS this is works with, but just give it a try and see if it works.

Just open up the change connection box, click the arrow for the Server Name drop down, and highlight (but don't click) the one you want to delete, and then just hit the delete key on your keyboard.

I do it all the time to clean up dups and random servers I've had to connect to over time.

-2

For SQL Server 2012 and above use this path:

C:\Users\(USER)\AppData\Roaming\Microsoft\SQL Server Management Studio\12.0\SqlStudio.bin
  • First of all, I see no difference between your answer given March 10th 2017, and Nikolai's given Jun 11th 2016!!! On the other hand, the OP's version is 2008. Please provide useful answers and pay close attention if similar answer is given or not. Anyway, welcome to the community, wish you good luck and success. – FarazX Mar 26 '17 at 8:58
  • 1
    By the way, I guess this will help you a lot : How do I write a good answer? – FarazX Mar 26 '17 at 9:03

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.