删除Sql Server连接过的数据库
1 @echo off 2 echo ---------------------------------------------------------------------------------- 3 echo -------------------------删除Sql Server连接过的数据库----------------------------- 4 echo ---------------------------------------------------------------------------------- 5 6 7 ::SQL Server 2005 8 del "%USERPROFILE%\Application Data\Microsoft\Microsoft SQL Server\90\Tools\Shell\mru.dat" 9 10 ::SQL Server 2008 11 del "%USERPROFILE%\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin" 12 del "%APPDATA%\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin" 13 14 ::SQL Server2012 15 del "%APPDATA%\Microsoft\SQL Server Management Studio\11.0\SqlStudio.bin" 16 del "%APPDATA%\Microsoft\SQL Server Management Studio\11.0\User.vsk" 17 18 echo. 19 pause