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

相关文章
相关标签/搜索