Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005

    Unanswered: how to attach a DB

    I have database DB1 on Box1 and I have the full backup of that database and also have data file and log file.If I want to restore the database on a diff box How can do that.

    1.How can I restore the Database?
    2.How ca I attach the data file to the database on new Box?


  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    Check out the WITH REPLACE arguement of the RESTORE command.

    or if you have a mdf and a ldf look at sp_attach_db.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts