Database offline

  • Hi , I am unable to bring Database to online its saying database is in used using below command

    Alter database dbname set offline

    please advice.

  • You can not bring the database when there is a session on database. find out the spid who is using the database then kill that spid.

    Select * from sys.sysprocesses where dbid=db_id('dbname')

  • Thanks for your prompt response.

  • Welcome:-)

  • Satya_0000 (2/29/2012)


    Hi , I am unable to bring Database to online its saying database is in used using below command

    Alter database dbname set offline

    please advice.

    You also do this by below query

    Alter database dbname set offline with rollback immediate

Viewing 5 posts - 1 through 4 (of 4 total)

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