Solved

how do i open .bak file on SQL Server 2012 ?

Posted on 2013-05-27
4
3,320 Views
Last Modified: 2013-06-23
i copy .bak file 8GB to my local computer i installed SQL server 2012 with studio manager how do i open this .bak file

Thanks
Gvilbis
0
Comment
Question by:gvilbis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Assisted Solution

by:x-men
x-men earned 125 total points
ID: 39199127
Restore filelistonly from disk = 'MyPath\Myfile.bak'

wil give you the contents of the bakup file.
0
 
LVL 16

Assisted Solution

by:Surendra Nath
Surendra Nath earned 125 total points
ID: 39199131
you cannot open a .bak file with SSMS, it will be used to restore the database.

In simple terms, you cannot open it, just like that you have to follow a procedure to open it (it will be correct to say to restore it).


The below link have a step by step guide on how to do it.
http://www.katieandemil.com/sql-server-2012-restore-database-backup-file
0
 
LVL 1

Assisted Solution

by:engmgs
engmgs earned 125 total points
ID: 39199133
.bak is a backup file generated in sql server .

Backup files importing means resotring a database ,you can restore on a database created in sql server 2012 but the backup file should be from SQL 2005,2008,2008r2,2012 database.

You restore database by using following command...

RESTORE DATABASE YourDB FROM DISK = 'D:BackUpYourBaackUpFile.bak' WITH Recovery

you want to learn about how to restore .bak file follow the below link:

http://msdn.microsoft.com/en-us/library/ms186858(v=sql.90).aspx
0
 
LVL 10

Accepted Solution

by:
Ramesh Babu Vavilla earned 125 total points
ID: 39200854
restore database dbname from disk =' .bak file pth'
if you backup file is generated in SQL Server 2000. you cant restore it , to work out
you have to restore it on SQL Server 2008 and then on SQL Server 2012
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

707 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