Solved

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

Posted on 2013-05-26
7
371 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now