Welcome to Atlanta .NET Regular Guys Sign in | Join | Help

Clear SQL Server 2005 Management Studio recent servers drop down list

A good friend to all of us here in the Atlanta .NET community, Jim Wooley, is changing jobs.  Today is his last day with his current employer and he IMs me with a question.

“Matt”, he IMs.  “Here’s a SQL Server MVP type of question for you.  In 2005’s Management Studio, how do you remove a server from the dropdown list of available servers?  I don’t want to leave my former employer with the connection details to the VB.NET User Group’s database.”

“Simple!”, I write back.  “All you have to do is delete C:\Documents and Settings\<user>\Application Data\Microsoft\Microsoft SQL
Server\90\Tools\Shell\mru.dat.”

“Thanks a million!”  Jim replies.  “You’re swell!”

Ok – so that conversation didn’t take place EXACTLY like that.  What really happened was Jim asked me and I told him that I had no idea how to achieve his goal in SQL 2005.  In SQL 2000, to remove a server from the recent connections list, you modify this registry key: HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\Client\PrefServers.  There is no corresponding registry key for SQL 2005.

So I took advantage of my MVP status and posted a question to the private MVP newsgroup microsoft.private.mvp.sqlserver.  It was here that several people took stabs at the answer before Paul A Mestemaker II and Maciek Sarnowicz (both internal to the Microsoft SQL Server team) gave me the final answer.  Thanks a bunch for your help guys!

Published 08-09-2006 01:09 by Matt Ranlett
Filed Under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Jim Wooley said:

Thank you. You're swell! (I guess that makes 1,000,001.) If anyone wants to see the rest of them, check out http://www.hallmark.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10051&storeId=10001&partNumber=nfg2687_DK&rank=P1R1S&searchValue=thanks+a+million. No, really. It's quite a hoot.
September 10, 2006 12:30 PM
 

StevenHarman.net said:

October 25, 2006 8:35 AM

What do you think?

(required) 
(optional)
(required) 

About Matt Ranlett

One of the two original Atlanta .NET Regular Guys, Matt fills his free time by helping to run several Atlanta area user groups, the Atlanta Code Camps, and works as one of the two INETA co-Vice Presidents of Technology
SkinName:iroha_Blog2
Powered by Community Server, by Telligent Systems