Solved

Open SQL Server BAK file

Posted on 2011-02-12
5
628 Views
Last Modified: 2012-05-11
How do I open SQL Server BAK file without using restore?  I only won't to view the script.
0
Comment
Question by:jordanhelen
[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
  • 2
  • 2
5 Comments
 
LVL 29

Accepted Solution

by:
Olaf Doschke earned 500 total points
ID: 34879147
"the script"? Do you mean you want to view stored procedures?

Or do you think a bak is an sql script generating the database? It's not, it's a binary file. You need a restore to see inside. At least I don't know a tool specialised on inspecting BAK files without a restore.

Bye, Olaf.
0
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 34879158
This might help you find out more about the bak file you have at hand:

http://www.mssqltips.com/tip.asp?tip=1150

Bye, Olaf.
0
 
LVL 13

Expert Comment

by:geek_vj
ID: 34880038
>>How do I open SQL Server BAK file without using restore?  I only won't to view the script.
You cant open a bak file and read the data in it, however, you can view the logical and physical file names of it.
Please let us know what you meant by viewing the script so that we can suggest you better.
0
 

Author Comment

by:jordanhelen
ID: 34882932
I would like to see the code in the BAK file to determine what part of the restored database I want.
My problem.  I am using SQL Server 2008 Standard.  I have a backed up database that I need to restore.  It won't restore because one table in in the BAK file (database) has table compression.  So I need to be able to restore eliminating this table or open the file, look at it and determine what I want.
Can you help?
0
 
LVL 13

Expert Comment

by:geek_vj
ID: 34885639
>>So I need to be able to restore eliminating this table or open the file, look at it and determine what I want.
Unfortunately this is possible only to a limited extent by using piecemeal restore - ie to restore the database based on filegroups. Here is some information about the same: (Do read under 'Piecemeal Restore Under the Full Recovery Model')

http://msdn.microsoft.com/en-us/library/ms177425(v=SQL.90).aspx

Pls revert in case you have any queries
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

Suggested Solutions

Title # Comments Views Activity
sql 2008 how to table join 2 31
Reformat SQL - so SSRS can read the columns 25 35
Linked Server - SP with Param to VIew 7 25
Estimating my database size 7 22
In this article I will describe the Detach & Attach 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.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

696 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