troubleshooting Question

How to restore a database?

Avatar of alicia1234
alicia1234Flag for United States of America asked on
Microsoft SQL Server 2008
3 Comments2 Solutions250 ViewsLast Modified:
I'm new to SQL Server but have a lot of experience with MySQL and PHPMyAdmin.

I have a backup of an MS SQL database (a BAK file).
On my PC, I have MS SQL Server 2008 Express and Microsoft SQL Server Management Studio.
I thought I would be able to go in to the Studio and find something like "File > Restore" but no such thing.

I searched the Studio help and all I found was stuff like "you can copy a database using restore ... " but nothing that actually tells me how!

The database itself already exists on my PC (it was created when I installed the Ektron Content Management System). Now I'm just trying to overwrite it with the database that is backed up, because that one actually contains some relevant data.

I think I just need to enter this command "somewhere" but where is the "somewhere"?( In phpMyAdmin with a MySQL database, I would just open a "SQL" tab and enter the command. I find no such thing in SQL Management Studio.)

RESTORE DATABASE mydatabasename FROM mydatabasebackupfile WITH NORECOVERY;

Seems like it should be simple but obviously I am missing something!
Thanks.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros