20

on SQL Server 2005, we do a weekly full backup with nightly incremental backups.

I want to know if it is possible to restore a single table from a backup, either to the source database or a different one.

I can not find any clear answer online.

Thanks in advance.

0
14

You can't restore a single table directly from your backup to a database.

You could restore your complete backup to new database and then copy your table from there to the desired database.

3
  • 6
    Another alternative is to use third party tools, such as Red Gate SQL Backup, Quest LiteSpeed, or Idera SQL Safe, which all allow you to perform object level restores using native SQL backups.
    – Mike Fal
    Feb 8 '13 at 5:14
  • 1
    I went with this, simple and easy, and no disruption to the production db or the other tables which were not affected.
    – GWR
    Feb 20 '13 at 0:44
  • 2
    Red Gate SQL Backup doesn't recognize compressed backup files anymore. Just a warning for all those who buy this expensive ToolBelt (like we did), thinking that you now have everything in case of need (like we did) and then find yourself with nothing that you can use (like we do currently).
    – taffit
    Mar 28 '19 at 16:39
5

You can also try some of the 3rd party tools that allow you to attach database backups and work with them as with live databases. You can try SQL Virtual Restore from Red Gate or ApexSQL Restore from ApexSQL or SQL Virtual Database from Idera.

All of these are commercial tools but you can find fully functional trials to get the job done. Additional benefit of all of these is that they require very little additional space unlike standard backup restore.

Sorry for the lack of links to all tools but I can't post more than one link due to low reputation :)

2
  • for 100GB database Apex is getting lots of time practically restoring it on destination server. i do not got the point yet
    – Iman
    Aug 17 '15 at 13:04
  • 3
    Unfortunately, it looks like all 3 of those products have now been discontinued :(
    – KenD
    Feb 7 '19 at 14:15
4

There is another method, but a little more complex. If your single table is getting very large, copy it onto a filegroup. Then use File & Filegroups backup to restore the single table.

See also : http://msdn.microsoft.com/en-us/library/ms177425.aspx

Not the answer you're looking for? Browse other questions tagged or ask your own question.