SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

IK1972
Starting Member

49 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.

Thanks

TG
Flowing Fount of Yak Knowledge

USA
6062 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
TG
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000