介紹:
作為一名開發人員都會知道我們做的項目都要用到數據庫,數據庫都需要賬號和密碼,然而問題來了,做的東西多了那些沒用的賬號和密碼還在哪里糾纏着我們。所有我們不能忍了刪除掉他。
網上很多都是2008的是刪除方案,知道我看到了這篇:http://stackoverflow.com/questions/349668/removing-the-remembered-login-and-password-list-in-sql-server-management-studio
版本路徑說明
SQL Server Management Studio 2016 delete the file C:\Users\%username%\AppData\Roaming\Microsoft\SQL Server Management Studio\13.0\SqlStudio.bin SQL Server Management Studio 2014 delete the file C:\Users\%username%\AppData\Roaming\Microsoft\SQL Server Management Studio\12.0\SqlStudio.bin SQL Server Management Studio 2012 delete the file C:\Users\%username%\AppData\Roaming\Microsoft\SQL Server Management Studio\11.0\SqlStudio.bin SQL Server Management Studio 2008 delete the file C:\Users\%username%\AppData\Roaming\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin SQL Server Management Studio 2005 delete the file – same as above answer but the Vista path. C:\Users\%username%\AppData\Roaming\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat
注意:AppData
是一個隱藏文件夾。您需要在資源管理器中顯示隱藏的文件夾。
上面只是簡述了所對應版本需要刪除的文件路徑。還是需要我們手動去找到然后刪除對應文件的。
當然我們也可以不這樣那就復制下面的路徑吧。
SQL Server Management Studio 2016 :%AppData%\Microsoft\SQL Server Management Studio\12.0\
SQL Server Management Studio 2014 :%AppData%\Microsoft\SQL Server Management Studio\12.0\
SQL Server Management Studio 2012 :%AppData%\Microsoft\SQL Server Management Studio\11.0\
SQL Server Management Studio 2008 :%AppData%\Microsoft\Microsoft SQL Server\100\Tools\Shell\
SQL Server Management Studio 2005 :%AppData%\Microsoft\Microsoft SQL Server\100\Tools\Shell\
這樣找到對應版本數據庫,直接復制版本后面的路徑,然后在根據第一個代碼路徑找到需要刪除的文件名即可。這樣是不是很爽啊。