How do I restore my SQL .bak file over the existing database?

435915 pts.
Tags:
.bak file
Data management and storage
SQL Database
Windows installation
How do I restore my SQL .bak file over the existing database? Do I need to delete what is there already? On a new Windows installation I need to restore our production SQL database from a .bak file. What steps do I need to take? Can I overwrite data or do I need to restore to a fresh database?

Software/Hardware used:
SQL

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can just restore it over the existing database. When you have the restore window open, just check the Overwrite database check box on the advanced tab.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Rick Martinez
    You can add the "replace" in the sql like this: RESTORE DATABASE
    585 pointsBadges:
    report
  • The Most-Watched IT Questions: July 20, 2010 - ITKE Community Blog
    [...] 7. Mr. Denny and RickMartinez helped us out: How do I restore my SQL .bak file over the existing database? [...]
    0 pointsBadges:
    report
  • The Most-Watched IT Questions: July 27, 2010 - ITKE Community Blog
    [...] 1. RickMartinez and Mr. Denny helped us out trying to figure out how to restore a SQL .bak file over the existing database. [...]
    0 pointsBadges:
    report
  • paulettem
    Is there an idiots (step-by-step instruction) guide to restoring the BAK file?
    15 pointsBadges:
    report
  • edwinjhoffer
    you can use RESTORE....WITH REPLACE command to restore the database over the existing database.
    3,365 pointsBadges:
    report
  • AjitK29

    Right click the databases folder in the tree on the left in SSMS and select restore database.

    The restore task will remove the existing database and then create the restored database. Remember to select overwrite on tick box on the options tab.

    2,445 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: