cannot put DB offline

  • Hi

    When I try to put the database offline by clicking to the right, tasks, take offline:

    I am getting this error message :

    Server: Msg 5061, Level 16, State 1, Line 16

    ALTER DATABASE failed because a lock could not be placed on database 'mydatabase'. Try again later.

    Server: Msg 5069, Level 16, State 1, Line 16

    ALTER DATABASE statement failed.

    I tried this

    USE MASTER

    Go

    alter database DBName set with rollback immediate

    same error.. any ideas why?

  • Some other connection might have the database open in single user mode.

    You would have to kill that connection before the database can be set offline.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply