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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 how to create smaller version of production databa
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

56 Posts

Posted - 02/20/2014 :  09:53:27  Show Profile  Reply with Quote
I have 200+GB Production database and I get a task to create a smaller version of database for QA / Dev every night.

can any one suggest what is the best way or approach is.

Issues is there are lots of tables with constraint and I need one last one week data and then remove all other data as table size is too big so delete will not work.


Flowing Fount of Yak Knowledge

6065 Posts

Posted - 02/20/2014 :  11:57:47  Show Profile  Reply with Quote
How about start with an empty copy of the database (in production). Then insert a week's worth of data from the live db to the devqc copy - in the correct table order so you don't violate FK constraints. Then take a backup of that dev/qc database and distribute as needed.

I wonder why you want a fresh copy every night? Seems like an occasional refresh should be sufficient. what if folk's dev and testing needs to span several days?

Be One with the Optimizer
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000