Solved

Open SQL Server BAK file

Posted on 2011-02-12
5
614 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
  • 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

19 Experts available now in Live!

Get 1:1 Help Now