1 @echo off 2 echo ---------------------------------------------------------------------------------- 3 echo -------------------------删除Sql Server连接过的数据库----------------------------- 4 echo ---------------------------------------------------------------------------------- 5 6 7 ::SQL Server 2005 8 del "%USERPROFILE%Application DataMicrosoftMicrosoft SQL Server90ToolsShellmru.dat" 9 10 ::SQL Server 2008 11 del "%USERPROFILE%Application DataMicrosoftMicrosoft SQL Server100ToolsShellSqlStudio.bin" 12 del "%APPDATA%MicrosoftMicrosoft SQL Server100ToolsShellSqlStudio.bin" 13 14 ::SQL Server2012 15 del "%APPDATA%MicrosoftSQL Server Management Studio11.0SqlStudio.bin" 16 del "%APPDATA%MicrosoftSQL Server Management Studio11.0User.vsk" 17 18 echo. 19 pause