Taking a Database Offline in Management Studio Express

SQL Server Management Studio Express does not provide a Take Database Offline command in the Object Explorer menu.

To take a database offline, simply type:

alter database my_database_name set offline

To check, which databases are set offline, use the following query:

select name, databaseproperty(name, 'IsOffline') as IsOffline
from sysdatabases

One Response to Taking a Database Offline in Management Studio Express

  1. […] did however find an older post here dealing with SSMS Express […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: