How to take MSSQL database offline or bring it online?

Sometimes, you come across to a situations when you are required to physically move the database files. Online databases will not allow you such moving operations on “online” status therefore, you will require to take your database offline to accomplish it. You can do it from SQL Server Management Studio interface as mentioned below:

Steps to Take MS SQL Database Offline

  1. Login into your SQL Server Management Studio [Reference URL].

  2. Expand Databases option and locate the database that you wish to take offline.

    Expand Databases Option and Locate your Database from List

  3. Right click the database and select Tasks >> Take Offline.

    Right Click the Database and Select Tasks > Take Offline Option

  4. Once this is done, it will show you a message as below:

    A Message Appear After Taking a Database Offline


Steps to Bring MS SQL Database Online

  1. Once you are done with transferring the database files, you will require to bring the database online again.

  2. For that, again expand the Databases option and locate your offline database.

    Expand Databases Option and Locate the Offline Database

  3. Right click the database and select Tasks >> Bring Online.

    Right Click the Database and Select Tasks > Bring Online

  4. Once the process is done, it will show you a message as below:

    A Message Appear After Bringing a Database Online


  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

How to configure MSSQL server default language configuration option?

Recently, we faced strange issue wherein one of our customers was capturing error messages coming...

How to shrink MSSQL Database?

Important Note: We don't recommend to shrink your database. You can involve your Database...

Fix :: Reporting Service Error After Upgrade From MS SQL server from 2008 to 2012

Error Message Throwing Microsoft.ReportingServices.Diagnostics.Utilities....

How to use MSSQL Activity Monitor to find the most expensive query?

A slow and long running SQL query execution consumes much processor, memory, and disk of your...

How to Install Advanced Features on Existing Instance of MS SQL Server?

If you have chosen MS SQL Server to be installed in Windows VPS while placing an order, you'll...