Solved

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

Posted on 2013-05-27
4
3,251 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
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:
sqlservr 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

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.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

821 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