Solved

Restoring only one table in database backup

Posted on 2009-05-04
5
1,557 Views
Last Modified: 2012-05-06
An issue has come up some missing data in a table in one of my MS SQL 2005 databases.  There are a few dozen tables, all actively being used and updated regularly.

What I need to do is to recover ONLY THIS TABLE to look at this data for evaluation.  I have seen lots of directions about restoring databases, but haven't seen how to only recover only one table.  It would make sense to not overwrite the existing data that has accrued over the last few weeks, but it's not a big deal because I've made copies of this table.

If this doesn't work, how hard is it to create a new database on a different server and restore my backup there to see what it looks like?  From there I suppose I could insert any missing data into the live table.  Thanks for any input.
0
Comment
Question by:IntercareSupport
[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
5 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 24298273
you can't recover just that single table w/o restoring the whole db if you havne't planned for it. (filegroups).  SO, restore the backup to a new database, and then just move that table data over to your existing db.  
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 24298276
unless the table is on a dedicated tablespace, you have to restore the entire database (under another name, no problem to be done even on the same server).
after that, you can copy back the table with or without data just as needed.
0
 

Author Closing Comment

by:IntercareSupport
ID: 31577707
Thanks, that's what it was looking like to me, too.  Appreciate it.
0
 
LVL 1

Expert Comment

by:usmanr
ID: 24298555
yes you cannot restore single table from backup file.

For data comparison, Though you can write queries to compare data between databases on different servers but to make things easier, Instead of restoring the database on different server, you can restore it on the same server with different database name. Then if you want to compare the data between tables, you can write some query for this.
To make your query more simpler, you can use DTS (Data Transformation Services) / Sql Queries to copy the table into same database.
0
 

Author Comment

by:IntercareSupport
ID: 24298702
Thanks, good advice.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard 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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 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