SQL Server Management Studio (SSMS) 的「鏈接到服務器」對話框會記錄用戶全部訪問過的服務器名稱,這個功能對於常常鏈接多個數據庫的人來講確實挺方便的。 數據庫
不過使用了一段時間以後,這個列表會變得很長。裏面還有不少服務器名稱都已經失效了,很想把這個列表清空了。可是很鬱悶在SSMS的界面找不到能夠清空該列表的地方,因而我Google了一把,找到了答案。 服務器
對於 SQL Server 2005 Management Studio,能夠刪除如下文件清空該列表: blog
WinXP: C:\Documents and Settings\<user>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat
Vista/Win7: C:\Users\<user>\AppData\Roaming\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat io
對於 SQL Server 2008 Management Studio,能夠刪除如下文件清空該列表: im
WinXP: C:\Documents and Settings\<user>\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin
Vista/Win7: C:\Users\<user>\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin 數據
若是你也遇到一樣的煩惱,不妨試一試! img