Question : How to restore a database?

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.


Answer : How to restore a database?

check out in the databases folder's context menu, you can issue a "restore" from there, or use SQL window and issue a restore using T-SQL.
basic minimal syntax:
RESTORE DATABASE dbname FROM DISK='c:\backup_of_database.bak'

more info:
msdn.microsoft.com/en-us/library/ms177429.aspx
Random Solutions  
 
programming4us programming4us