Re: Can't take db offline

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rick Sawtell (quickening_at_msn.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 15:15:17 -0600


"DBA" <DBA@discussions.microsoft.com> wrote in message
news:B16E4BFD-5BC0-4FEE-B53E-53F22D10CFA9@microsoft.com...
>I have an ERP system, and I am try to take the db offline to restore, but
>it
> will not. Any suggestions. I even rebooted

Run sp_who to see who is currently connected to the database.

You can then use the KILL command to kill off the spids who are connected.
Once that is done, you should be able to put the database in db use only.

Rick Sawtell
MCT, MCSD, MCDBA



Relevant Pages

  • How to recover the backup database
    ... database then be very carefull. ... you'll run into loads of ... especially since when the database goes offline for the ... restore then you con't issue any more ADO commands to it. ...
    (microsoft.public.sqlserver.programming)
  • Re: How to disconnect all connections of a Database.
    ... A better link for the offline part: ... > Derek Davis ... depending on the database) to kick everyone off. ... >>>I write a restore program to restore a database. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Backend Exchange migrate to New Hardware (Server)
    ... Exchange mailbox stores and Exchange public folder stores. ... When you use Backup to restore Exchange databases, ... Storage Engine to restore Exchange database files and their ...
    (microsoft.public.exchange.setup)
  • Backup and Restore Files
    ... What is the best way to backup and restore a runtime database file? ... pszDisplayName As String ...
    (microsoft.public.access.gettingstarted)
  • RE: Restore public folders and companyweb
    ... > where the backup of the database. ... Before you can start to restore the SharePoint Services databases, ... > Microsoft CSS Online Newsgroup Support ... > This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)