Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2005
    Posts
    4

    Unanswered: SQL NEWBIE Needs help with a backup

    Hi all...

    SO here is my problem. I have a seperate database that has been backed up but I need to import it to another SQL server. The files I have are .bak and need to add it to the Current list of databases that I have.

    Does anyone have a heart to help me. ?

    Thanks

  2. #2
    Join Date
    Jan 2005
    Posts
    4

    Better explaination of my problem

    So I have .bak files that I need to import into MS SQL server. How do I attach a new database with .bak files?

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    In SQL Server EM, in the left hand pane under Micrososft SQL Servers\ SQL Server Group \ <ServerName.InstanceName> Right click on databases, all tasks, restore database.
    “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.

  4. #4
    Join Date
    Jan 2005
    Posts
    4
    it only restores a database that has been previously backed up. I need to import a database new database with .bak files.

  5. #5
    Join Date
    Jan 2005
    Posts
    4
    it only restores a database that has been previously backed up. I need to import a new database with .bak files.

  6. #6
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    In SQL Server EM, in the left hand pane under Micrososft SQL Servers\ SQL Server Group \ <ServerName.InstanceName> Right click on databases, all tasks, restore database.
    “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.

  7. #7
    Join Date
    Feb 2004
    Location
    San Antonio, TX
    Posts
    565
    Here is the code from books online
    modified a bit to reflect a .bak source

    RESTORE DATABASE MyNwind
    FROM disk = 'c:\program files\MyNwind_1.bak'
    WITH NORECOVERY,
    MOVE 'MyNwind' TO 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\NewNwind.mdf',
    MOVE 'MyNwindLog1' TO 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\NewNwind.ldf'
    RESTORE LOG MyNwind
    FROM disk = 'c:\program filesMyNwindLog1'
    WITH RECOVERY

Posting Permissions

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