Restore MASTER database from an existing backup resulting in error?

  • Hi,

    Iam trying to restore master database from an existing backup. For this I followed this procedure.

    1.net stop MSSQL$ ins1

    2.go to C:\Program Files (x86)\Microsoft SQL Server\MSSQL$ins1\Binn

    3.sqlservr.exe -m -s ins1(start sql server single user mode)

    4.go to enterprise manager->master->all tasks->restore->

    then Iam getting an error saying that:

    microsoft sql-DMO(ODBC SQLState 01000) the master database has been successfully restored.shuting down sql server is terminating this process

    Note: see the attached screen shot.

    Could you plz tell me what I have to do to get rid of this error.

    could plz suggest me whether Iam follwing the correct approach or not. Iam doing all this in my test environment sothat we will be ready when a disaster occures.

    thanks

  • Gosh... I don't know, but I'd like to know.

    Anybody got any ideas on this one?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Actually, that's exactly how it should be.

    After restoring the master database SQL Server will shut down.

    You can then remove the -m parameter and start the server in multi-user mode again.

    [font="Verdana"]Markus Bohse[/font]

  • Thank You Makus,

    Iam able get to the step 4. After step 4 Iam getting the error

    microsoft sql-DMO(ODBC SQLState 01000) the master database has been successfully restored.shuting down sql server is terminating this process. Then I have clicked ok to the error message as you said it is norma behaviour.

    But after I clicked ok, Iam getting the restore progress window and it is staying for ever,saying that sql server is currently in the process of restoring the backup set. Could you plz advice the steps to follow to restore master db from an existing backup file?

    Note: see the attached screen shot.

    I appreciate your help..

    Thanks again

  • Mani,

    the "problem" is that you're restoring from Enterprise Manager. EM hangs as soon as the server shutsdown after the restore and all you can do is kill the process. It's beteer to do the restore through Query Analyzer or osql.exe. Anyhow once you kill EM and restart the server normally everything should be fine. I just did a little test and it worked without any problems.

    [font="Verdana"]Markus Bohse[/font]

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply