How to stop a SQL Server Database that is in a restore process...

Posted on 2007-10-05
Last Modified: 2010-05-07
I have a SQL server Database that shows "<Database name>(Loading)...but I cannot be able to stop it. I tried to detach it but I got a message cannot be able to detach a Database that is in a restore mode...? Please help...TIA

Question by:Nakuru1234

    Author Comment

    This is the actual error message

    Error 927: Database 'CONTRACTS' cannot be opened. It is in the middle of a restore. TIA...

    LVL 4

    Accepted Solution

    Were you trying to restore a database into the server?  What you've done is that you happened to leave your database nonoperational but able to restore additional transaction logs.

    try RESTORE DATABASE [your database name] WITH RECOVERY
    Just substitute your database name and the state of the database is changed an you can now go in and use it.

    Hope it helps.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Via a live example, show how to shrink a transaction log file down to a reasonable size.
    Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

    732 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

    20 Experts available now in Live!

    Get 1:1 Help Now