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

How to Restart SQL Server in Single-User Mode ?

Disable All Triggers in MS SQL Server Table

Benefits of Using Stored Procedures in MS SQL

Getting List of All Server Databases in MS SQL

Disabling a Specified Trigger in MS SQL Server