• There is another option that you can use to kill all active connection the database and make database read only

    ALTER DATABASE <mydb> SET READ_ONLY WITH ROLLBACK IMMEDIATE

    Abhijit - http://abhijitmore.wordpress.com