Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem in restoring database

Problem in restoring database

Scheduled Pinned Locked Moved Database
databasehelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Care Career
    wrote on last edited by
    #1

    Hi I have to database in sql sever 2000 db1 & db2 I want db2 backup in db1 . I have taken db1 bacckup After tht how i do restore Plz Help

    P E 2 Replies Last reply
    0
    • C Care Career

      Hi I have to database in sql sever 2000 db1 & db2 I want db2 backup in db1 . I have taken db1 bacckup After tht how i do restore Plz Help

      P Offline
      P Offline
      Pratik Vasant Shah
      wrote on last edited by
      #2

      Do you mean you want to overwrite the data of db1 database with that of db2.

      Thanking you in Advance Regards Pratik Shah

      C 1 Reply Last reply
      0
      • P Pratik Vasant Shah

        Do you mean you want to overwrite the data of db1 database with that of db2.

        Thanking you in Advance Regards Pratik Shah

        C Offline
        C Offline
        Care Career
        wrote on last edited by
        #3

        ya SO how to do? Thnx

        P 1 Reply Last reply
        0
        • C Care Career

          ya SO how to do? Thnx

          P Offline
          P Offline
          Pratik Vasant Shah
          wrote on last edited by
          #4

          Hi, Since you already have the backup of db1 (assumed, as said by you) you can just drop the database db1 and restore the data of db2 in a new database and give the dbname as db1. (This can be done using the Enterprise Manager in SQL 2000). Kind regards PS

          Thanking you in Advance Regards Pratik Shah

          1 Reply Last reply
          0
          • C Care Career

            Hi I have to database in sql sever 2000 db1 & db2 I want db2 backup in db1 . I have taken db1 bacckup After tht how i do restore Plz Help

            E Offline
            E Offline
            Eliz k
            wrote on last edited by
            #5

            I assume you want to copy everything from db2 to db1. 1. Backup db2. 2. Right click db1, go to All Task/Restore Database.. 3. Check "FROM Device". 4. Select the device by click on button "Select Devices". 5. Add the backup file that you backup from db2. Click button "OK". 6. Go to tab "Option". Change the physical file name to db1.mdf and db1.ldf. 7. Check option "Force restore over existing database". 8. You should know how to continue now. btw, please check Management/Current Activity/Process Info to make sure no connection is connected to db1. Eliz.K www.oin1.com

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups