title: Drop DB but don't delete *.mdf / *.ldf
body: <p>I am trying to automate a process of detaching and dropping a database (via a VBS objshell.run) If I manually use SSMS to detach and drop I can then copy to database files to another location... however if I use:</p>
  
  <pre><code>sqlcmd -U sa -P MyPassword -S (local) -Q "ALTER DATABASE MyDB set single_user With rollback IMMEDIATE"
  </code></pre>
  
  <p>then</p>
  
  <pre><code>sqlcmd -U sa -P MyPassword -S (local) -Q "DROP DATABASE MyDB"
  </code></pre>
  
  <p>It detaches/drops and then deletes the files. How do I get the detach and drop without the delete?</p>