SQLServer刪除登入記錄使用者名稱和密碼

yanbigfeg發表於2018-07-10

介紹:

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

網上很多都是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%AppDataRoamingMicrosoftSQL Server Management Studio13.0SqlStudio.bin

SQL Server Management Studio 2014 delete the file C:Users\%username%AppDataRoamingMicrosoftSQL Server Management Studio12.0SqlStudio.bin

SQL Server Management Studio 2012 delete the file C:Users\%username%AppDataRoamingMicrosoftSQL Server Management Studio11.0SqlStudio.bin

SQL Server Management Studio 2008 delete the file C:Users\%username%AppDataRoamingMicrosoftMicrosoft SQL Server100ToolsShellSqlStudio.bin

SQL Server Management Studio 2005 delete the file – same as above answer but the Vista path. C:Users\%username%AppDataRoamingMicrosoftMicrosoft SQL Server90ToolsShellmru.dat

注意:AppData是一個隱藏資料夾。您需要在資源管理器中顯示隱藏的資料夾。

上面只是簡述了所對應版本需要刪除的檔案路徑。還是需要我們手動去找到然後刪除對應檔案的。

當然我們也可以不這樣那就複製下面的路徑吧。

 

 SQL Server Management Studio 2016 :%AppData%MicrosoftSQL Server Management Studio12.0
 SQL Server Management Studio 2014 :%AppData%MicrosoftSQL Server Management Studio12.0
 SQL Server Management Studio 2012 :%AppData%MicrosoftSQL Server Management Studio11.0
 SQL Server Management Studio 2008 :%AppData%MicrosoftMicrosoft SQL Server100ToolsShell 

SQL Server Management Studio
2005 :%AppData%MicrosoftMicrosoft SQL Server100ToolsShell

這樣找到對應版本資料庫,直接複製版本後面的路徑,然後在根據第一個程式碼路徑找到需要刪除的檔名即可。這樣是不是很爽啊。

相關文章