Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

How to bring database to normal from emergency..

$
0
0

Hello Experts,

    I am learning SQL Server 2008, I placed a test database in emergency mode using the below command:

   alter database test set emergency.

    Now I want to remove the database from  emergency mode to normal mode. So I executed the below command:

   Alter database test set online.

  But the command is keep running for more than 15 mins. I also checked the state of the database using the below query and found the database is still in emergency state:

select name,state_desc  from sys.databases where name = 'test' 

 Please let me know how to bring database from emergency to normal.

With regards,

Gopinath.


With regards, Gopinath.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>