May 15, 2015 at 12:46 am
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?
May 15, 2015 at 1:18 am
Yes, although you may have to play with the format file, depending upon the differences.
Have a look at this article on using the format file - http://www.sqlservercentral.com/articles/BCP+(Bulk+Copy+Program)/105867/
May 15, 2015 at 1:48 am
Gregg Dave (5/15/2015)
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?
Quick question, why would you want to do that?
😎
May 15, 2015 at 7:16 am
Eirikur Eiriksson (5/15/2015)
Gregg Dave (5/15/2015)
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?Quick question, why would you want to do that?
😎
Requirement to insert 5 million rows from one table to another. Now doing INSERT INTO and its taking sometime.
May 15, 2015 at 7:37 am
Gregg Dave (5/15/2015)
Eirikur Eiriksson (5/15/2015)
Gregg Dave (5/15/2015)
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?Quick question, why would you want to do that?
😎
Requirement to insert 5 million rows from one table to another. Now doing INSERT INTO and its taking sometime.
Did you have a look at the article mentioned in this post?
😎
What you need to do is a minimally logged insert and this article is a very good reference! 5M rows isn't particularly large, in fact it is almost to small for performance testing. This brings up the question of what else is involved, i.e. triggers, indices etc.
May 15, 2015 at 6:12 pm
Gregg Dave (5/15/2015)
Eirikur Eiriksson (5/15/2015)
Gregg Dave (5/15/2015)
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?Quick question, why would you want to do that?
😎
Requirement to insert 5 million rows from one table to another. Now doing INSERT INTO and its taking sometime.
How much time and how many columns, Gregg? Also, is this across servers by any chance?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 15, 2015 at 6:14 pm
Gregg Dave (5/15/2015)
have done inserting into files using BCP ,but is it really possible to bcp data from one table to another?
No... not directly. You would have to BCP out to a file from the source table and then BCP from that file to the destination table.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply