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

MS SQL Getting List of All Column Names of a Table

Which TCP/IP Port Does the SQL Server Run On ?

What are Some Advantages of Using CTE in SQL Server ?

What are Sparse Columns in SQL Server ?

What are the Events On Default Trace in SQL Server ?