How to stop SQL Server 2005 restore in progress

Posted on 2010-01-08
Last Modified: 2012-05-08
I started a restore database process in SQL Server 2005.  It sat for quite a while executing but never got past 0%. So, I cancelled the restore in the Restore window, which worked, and the window closed.  Now this database shows "(restoring...)' out to the right of the database name in SQL Manager.

What is the SQL script I need to execute to get this database out of 'restoring' mode so that I can try the restore again?
Question by:glennes
    LVL 5

    Accepted Solution

    When the backup is restored, it will be decompressed first then restored. Depends on the database size, it may take a while for the whole process. During the decompressing period, you will see the process is doing nothing (hanging).

    I think you will not be able to stop without stopping sql service. you may try killing process id using tskill command thru DOS Command prompt

    LVL 11

    Assisted Solution


    Author Comment

    vineethvp: How do I find the process ID for this?  I ran a script to show currently running jobs and have the GUID for the job, but not the process ID. Can I use the GUID?
    LVL 5

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
    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.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now