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 2000 Forums
 SQL Server Administration (2000)
 Copying schema, subset of data only?

Author  Topic 

aiken
Aged Yak Warrior

525 Posts

Posted - 2006-08-17 : 14:01:51
I need to get a backup or copy of a very large database. The issue is that I need it to be schema complete including RI, views, triggers, etc, but I need it to only include a small percentage of the actual data. It would be relatively easy to get 20 rows per table, but maintaining RI has me stumped.

Does anyone have a tool or method for doing this?

Thanks
-b

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2006-08-18 : 03:22:15
1. Create a DB script, restore on the target server.
2. Use DTS to export whole content of MASTER tables.
3. Use DTS to export TOP 20 ROWS of all TRANSACTIONAL tables. (use the option - Use a query to transfer the data server)

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -