Solved

stop a database from serving requests... but not the instance

Posted on 2014-11-07
2
144 Views
Last Modified: 2014-11-07
I want to take a database offline.  there are mulitiple databases on this sql instance.  I don't want to detach the database and i don't want the other databases in the sql instance to be affected at all.

the database that needs to go offline needs to not allow users to connect at all
i have sql 2008 and another server running sql 2012.
how can i accomplish this?

Thank you
0
Comment
Question by:jamesmetcalf74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 250 total points
ID: 40429293
Disable the users, or Change maximum number of connections to 0.

Or, simplest, back it up with NoRecovery.
0
 
LVL 25

Accepted Solution

by:
Mohammed Khawaja earned 250 total points
ID: 40429445
Or right click on the database and select the option to take database offline
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
database level memory cache..? 8 37
get_systemdrive info from tsql? 1 23
TSQL recursive CTE challenge... 8 34
partitioning database after decade growth 8 58
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question