How to remove “Server name” items from history of SQL Server Management Studio

前端 未结 15 2422
南方客
南方客 2020-11-28 20:33

When trying to connect to a server in Management Studio (specifically 2008), there is a field where you enter the Server name. That field also has a drop-down list where it

相关标签:
15条回答
  • 2020-11-28 21:13

    In SSMS 2012 there is a documented way to delete the server name from the "Connect to Server" dialog. Now, we can remove the server name by selecting it in the dialog and pressing DELETE.

    0 讨论(0)
  • 2020-11-28 21:13

    File SqlStudio.bin actually contains binary serialized data of type "Microsoft.SqlServer.Management.UserSettings.SqlStudio".

    Using BinaryFormatter class you can write simple .NET application in order to edit file content.

    0 讨论(0)
  • 2020-11-28 21:15

    In Windows Server 2008 standard with SQL Express 2008, the "SqlStudio.bin" file lives here:

    %UserProfile%\Microsoft\Microsoft SQL Server\100\Tools\Shell\
    
    0 讨论(0)
  • 2020-11-28 21:15

    C:\Users\\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell

    0 讨论(0)
  • 2020-11-28 21:19

    This is the correct way of doing it http://blogs.msdn.com/b/managingsql/archive/2011/07/13/deleting-old-server-names-from-quot-connect-to-server-quot-dialog-in-ssms.aspx

    0 讨论(0)
  • 2020-11-28 21:20

    For SQL 2005, delete the file:

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

    For SQL 2008, the file location, format and name changed:

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

    How to clear the list:

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

    This request is registered on Microsoft Connect

    0 讨论(0)
提交回复
热议问题