Solved

how to open sql.bak file in SQL Studio managment express

Posted on 2013-05-26
7
376 Views
Last Modified: 2013-06-25
I download a back database file 8GB to my XP local computer and i am trying to open it with SQL Stuido managment express

i added .mdf to the file name and i double click on the file and choose to open it with SSME and vizard installation of SQL Server 2005 started and finish ok without errors or warnning but at the end a meassge show that file can not be open (see attachment)

what i am doing wrong? or how i can open the .bak file

Thanks
Gvilbis
open-sql-db.JPG
0
Comment
Question by:gvilbis
7 Comments
 
LVL 4

Assisted Solution

by:EddyvanOpdorp
EddyvanOpdorp earned 125 total points
ID: 39198036
Hi,

You must create a new database with the same name.
Choos restore for that database, and restore from disk. Selecte the .bak file.

See here:
http://msdn.microsoft.com/en-us/library/ms177429.aspx
0
 
LVL 9

Assisted Solution

by:MattSQL
MattSQL earned 125 total points
ID: 39198320
Yep - this looks like a backup file and will need to be restored to a SQL Server instance - nothing useful can be gained from 'opening' this file...

Do you have SSME installed on the machine you are working on? How about SQL Server?
0
 
LVL 35

Accepted Solution

by:
David Todd earned 125 total points
ID: 39198462
Hi,

>>You must create a new database with the same name.

Wrong, the restored database can be called - within reason - anythingyoulike!

If the database is from another SQL instance, from memory you need to specify with replace.

If the database is restored to something other than original database you need to specify with replace.

If specifying with replace, need to specify the mapping between logical filenames and physical filenames.

Its a good practice to always specify the mapping between logical filenames and physical filenames and not just accept the default location/filename.

HTH
  David
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 125 total points
ID: 39199810
This is a duplicate question and should be deleted, please see here:
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_28139818.html
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39273508
Mind boggling.
0
 
LVL 35

Expert Comment

by:David Todd
ID: 39273517
Hi Antony

>> Mind boggling
Yip, only got a grade of B for that solution. I thought it deserved at least an A <wry grin>

Regards
  David
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39276723
Yes, not to mention that my non-solution was "awarded" points which sort of defeats the point of this site.  Rather sad considering the author has been a member for nearly 3 years.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question