Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to migrate specific tables entire dataset from my DEV machine to our staging machine. (Has all the basic starting data for this feature).

Essentially what I want to do is akin to the backup/restore operation for databases, but I only want to do this for a select couple of tables in my database.

Is this possible? I've searched long and hard for MSSQL -> MSSQL Table Migration or export/import and I've come up with not a lot.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

There is no native object level restore. However Quest Software, and RedGate both have products that can do object level restore. (I know that Quest does, I'm like 99% sure about RedGate.)

share|improve this answer
    
Ah, there's some 3rd party software to do it. I'll look into that. –  Aren B Feb 18 '11 at 18:06

Generally what you will have to do is generate scripts for the objects using Management Studio (or Enterprise Manager/Query Analyzer for 2000 and earlier), run these to create the objects on the staging server, and then use the Import/Export Wizard in Integration Services (or DTS for 2000 and earlier) to actually transfer the data to the destination server.

You could probably also use on-demand snapshot replication to push the objects to the target server, though making schema changes after that would require dropping the publication, or at the very least removing the objects from it.

share|improve this answer
    
Seems like a pretty interesting feature gap. I know it's not what we do often in production, but in development I find it frequent to copy selective data around. –  Aren B Feb 18 '11 at 1:09
    
I'm guessing their line of thinking is that if you're doing backup/restore, you want full consistency for your database and/or filegroup, and you won't get that with a single table backup. Situations involving testing are pretty easily served by starting and rolling back a transaction, a quick SELECT INTO to copy the table, or using ETL like SSIS to migrate the data elsewhere. –  db2 Feb 21 '11 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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