September 20, 2010 at 2:49 pm
Instead of using SQL Import and Export wizard, how do I dump a table from a Prod database to a dev database?
Thanks everyone.
September 20, 2010 at 2:52 pm
Besides the easy way?
SSIS package and manually ran job.
Stored procedure with drop/create on the target table and then a linked server to bring the data down.
Restore the production DB locally to dev and do the same as above without a linked server.
Print it off and hand it to a user to retype. :Whistling:
What are you looking to do that Import/export is not an option?
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.
For better assistance in answering your questions[/url] | Forum Netiquette
For index/tuning help, follow these directions.[/url] |Tally Tables[/url]
Twitter: @AnyWayDBA
September 20, 2010 at 3:12 pm
good old BCP utility.
---------------------------------------------------------------------
September 20, 2010 at 3:48 pm
Also... DTS
Thanks,
SQLBuddy
September 20, 2010 at 3:56 pm
sqlbuddy123 (9/20/2010)
Also... DTS
Deprecated in SQL 2005, replaced by SSIS, should not be used for new development, will be removed in a future version of SQL Server.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2010 at 5:11 pm
Deprecated in SQL 2005, replaced by SSIS, should not be used for new development, will be removed in a future version of SQL Server.
________________________________________
Gail Shaw
We walk in the dark places no others will enter
We stand on the bridge and none may pass
Please note that there is a difference between -- Which tool can be used to do a task ? and Whether to use the tool is a good option or not ?
I just mentioned that it's one of the options. Nothing more.
There are many factors which makes users to use DTS. What if the DTS is being used in their environment since long time or if SSIS is not installed in their environment or if the user has no knowledge to use SSIS.
Thank You,
Best Regards,
SQLBuddy.
September 20, 2010 at 7:26 pm
SELECT * INTO DevTable
FROM ProdTable ----with the use of OPENROWSET()
September 20, 2010 at 7:27 pm
sqlbuddy123 (9/20/2010)
Deprecated in SQL 2005, replaced by SSIS, should not be used for new development, will be removed in a future version of SQL Server.
________________________________________
Gail Shaw
We walk in the dark places no others will enter
We stand on the bridge and none may pass
Please note that there is a difference between -- Which tool can be used to do a task ? and Whether to use the tool is a good option or not ?
I just mentioned that it's one of the options. Nothing more.
There are many factors which makes users to use DTS. What if the DTS is being used in their environment since long time or if SSIS is not installed in their environment or if the user has no knowledge to use SSIS.
Thank You,
Best Regards,
SQLBuddy.
This is posted in a SQL 2005 forum so normally 2005 solutions are the best ones to suggest. 2005 implies that they likely don't have DTS.
Another option is to use Schema and data comparison tools to create and transfer the data. Like RedGate's SQL Compare and SQL DataCompare.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
September 20, 2010 at 10:42 pm
sqlbuddy123 (9/20/2010)
Deprecated in SQL 2005, replaced by SSIS, should not be used for new development, will be removed in a future version of SQL Server.
________________________________________
Gail Shaw
We walk in the dark places no others will enter
We stand on the bridge and none may pass
Please note that there is a difference between -- Which tool can be used to do a task ? and Whether to use the tool is a good option or not ?
I just mentioned that it's one of the options. Nothing more.
There are many factors which makes users to use DTS. What if the DTS is being used in their environment since long time or if SSIS is not installed in their environment or if the user has no knowledge to use SSIS.
Thank You,
Best Regards,
SQLBuddy.
Please note that if you don't tell people these things, they end up screwing things up for the future. How do I know this? They're the ones asking the questions. 😉
My recommendation would be to not tell folks to use deprecated methods in the future.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply