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
Solved

Open SQL Server BAK file

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
convert null in sql server 12 45
sql2016-WIn10: standard,for SQL servc-account.. 51 27
Disable TLS1.0 on Win 2012 server 7 21
SQL Recursion 6 16
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

789 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