title: Extreme wait-time when taking a SQL Server database offline
body: <p>I'm trying to perform some offline maintenance (dev database restore from live backup) on my dev database, but the 'Take Offline' command via SQL Server Management Studio is performing <strong>extremely</strong> slowly - on the order of 30 minutes plus now. I am just about at my wits end and I can't seem to find any references online as to what might be causing the speed problem, or how to fix it.</p>
  
  <p>Some sites have suggested that open connections to the database cause this slowdown, but the only application that uses this database is my dev machine's IIS instance, and the service is stopped - there are no more open connections.</p>
  
  <p>What could be causing this slowdown, and what can I do to speed it up?</p>