How to force a SQL Server 2008 database to go Offline

Posted by radbyx on Stack Overflow See other posts from Stack Overflow or by radbyx
Published on 2010-06-09T12:16:01Z Indexed on 2010/06/09 12:22 UTC
Read the original article Hit count: 172

Filed under:
|

How do I force my Database to go Offline, in no regards to what or who is is already using it?

I tried:

ALTER DATABASE database-name SET OFFLINE;

But it's still hanging of 7 min.

I want this because I need to test the scenario.

If it's even possible?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2008