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


介紹:

作為一名開發人員都會知道我們做的項目都要用到數據庫,數據庫都需要賬號和密碼,然而問題來了,做的東西多了那些沒用的賬號和密碼還在哪里糾纏着我們。所有我們不能忍了刪除掉他。

網上很多都是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\

這樣找到對應版本數據庫,直接復制版本后面的路徑,然后在根據第一個代碼路徑找到需要刪除的文件名即可。這樣是不是很爽啊。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM