Please Guide How To Restore Backup to new database?

  • can anyone guide me how can i restore database backup of name "cbs_test" to new database "rmsdb" i have created backup of old database and when i try to restore it on new database it give me error of old database mdf file and ldf file names... (i am using sql server 2008)

  • umer (1/8/2009)


    can anyone guide me how can i restore database backup of name "cbs_test" to new database "rmsdb" i have created backup of old database and when i try to restore it on new database it give me error of old database mdf file and ldf file names... (i am using sql server 2008)

    msdb is the system Database! Can you post the description of the error during restore!

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • Ooooppsss I didn't see the "r" ...ok try with replace option during restoration !

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • Quite honestly I wouldn't fight with it. I would restore the database under the original name "cbs_test"; then right-click on the database and rename it. It should make the proper changes for you and would save less time.

    ***************
    wnylibrarian
    Buffalo, NY US

  • Have you tried the restore statement using the WITH MOVE option to change the physical file names?



    Shamless self promotion - read my blog http://sirsql.net

  • nwlibrarian (1/9/2009)


    Quite honestly I wouldn't fight with it. I would restore the database under the original name "cbs_test"; then right-click on the database and rename it. It should make the proper changes for you and would save less time.

    Uh, careful now. Doing this will restore the DB over top of the original!

    Umer, what is the error that your getting? Nicholas is most likely correct here. You'll need to restore the DB using the WITH MOVE option.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

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

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