SQLServer刪除登陸記錄用戶名和密碼

介紹:

做爲一名開發人員都會知道咱們作的項目都要用到數據庫,數據庫都須要帳號和密碼,然而問題來了,作的東西多了那些沒用的帳號和密碼還在哪裏糾纏着咱們。全部咱們不能忍了刪除掉他。sql

網上不少都是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是一個隱藏文件夾。您須要在資源管理器中顯示隱藏的文件夾。spa

上面只是簡述了所對應版本須要刪除的文件路徑。仍是須要咱們手動去找到而後刪除對應文件的。code

固然咱們也能夠不這樣那就複製下面的路徑吧。server

 

 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\

這樣找到對應版本數據庫,直接複製版本後面的路徑,而後在根據第一個代碼路徑找到須要刪除的文件名便可。這樣是否是很爽啊。blog

相關文章
相關標籤/搜索