Making a MS SQL Offline Database Online

The following code is run to bring a database online in MS SQL Server.

ALTER DATABASE {Our Database Name} SET ONLINE

It is used as follows.

ALTER DATABASE [OurDB] SET ONLINE

After performing this operation, it will be seen that there is no change in the left panel (Object Explorer). To see this change, right click on the Databases folder and "Refresh".



You May Interest

What is the Difference Between a Local and a Global Temporary Tab ...

What are OFFLINE Datafiles with SQL Server ?

What is CHECKPOINT Process in the SQL Server ?

What are Replication and Database Mirroring in SQL Server ?

Showing Server Active Server Name in MS SQL