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
 Other SQL Server 2008 Topics
 How to copy production data to test data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gaby_58
Starting Member

8 Posts

Posted - 06/04/2012 :  10:42:45  Show Profile  Reply with Quote
Hi all,

I would like to copy some of production data to test database and just wondering how do I do that, Can I use SSIS. currently we have test data available and that is not a very good test data, so I want to get new test data and update that way testing can be done more accurately. Thanks for any suggestions and tips

visakh16
Very Important crosS Applying yaK Herder

India
48012 Posts

Posted - 06/04/2012 :  12:38:17  Show Profile  Reply with Quote
you can use
1. export import wizard
2. OPENROWSET if its for one time adhoc
3. linked server and use OPENQUERY or four part naming convention

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

gaby_58
Starting Member

8 Posts

Posted - 06/04/2012 :  15:35:42  Show Profile  Reply with Quote
Thanks for the reply, want to know I already have some data in Test DB, so When I do export and import, will it not overwrite. Also can I restrict dat I need to export depending on the date?

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
48012 Posts

Posted - 06/04/2012 :  16:42:19  Show Profile  Reply with Quote
quote:
Originally posted by gaby_58

Thanks for the reply, want to know I already have some data in Test DB, so When I do export and import, will it not overwrite. Also can I restrict dat I need to export depending on the date?




nope..you can specify in settings to append data
Yep...you can restrict data depending on date by choosing a query as source rather than straight pull in export import wizard settings

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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