SQL Server Management Studio (SSMS) 的“連接到服務器”對話框會記錄用戶所有訪問過的服務器名稱,這個功能對於經常連接多個數據庫的人來說確實挺方便的。
不過使用了一段時間之後,這個列表會變得很長。裏面還有很多服務器名稱都已經失效了,很想把這個列表清空了。但是很鬱悶在SSMS的界面找不到可以清空該列表的地方,於是我Google了一把,找到了答案。
對於 SQL Server 2005 Management Studio,可以刪除以下文件清空該列表:
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
對於 SQL Server 2008 Management Studio,可以刪除以下文件清空該列表:
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
如果你也遇到同樣的煩惱,不妨試一試!