Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Restore two tables from large DB into a new DB

Author  Topic 

twystedpair
Starting Member

5 Posts

Posted - 2008-02-12 : 10:49:11
I am fairly new to SQL, so please forgive me if my question is a bit elementary. I need to pull two individual tables out of a massive DB into a new DB for testing.

Thanks for the help.

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2008-02-12 : 11:39:13
In SQL terms RESTORE implies restoring from a BACKUP copy of a database.

You can't partially restore a database. You would have to restore the full backup/copy and then extract the 2 specific tables into the new DB. The latter can be achieved via an
insert into newdatabase.dbo.newtable
select col1,col2,col3,etc from olddatabase.dbo.oldtable
style query....
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2008-02-12 : 12:29:17
You could also use SSIS

Jack Vamvas
--------------------
Search IT jobs from multiple sources- http://www.ITjobfeed.com
Go to Top of Page
   

- Advertisement -