July 17, 2007 at 3:01 pm
To BCP or to DTS, THAT is the question. I find myself in a bit of a quandry over the relative benefits of the two and need some input from anyone who has ever had to deal with this choice. Any takers?
~Carlos
July 17, 2007 at 3:47 pm
Hi Can Any one help,
I am new to this forum, so not sure if its the write place to post a question.
Well i got a flat file (in{CR}{LF} format) and needs to be imported into a sql server 2000.
now i need to know how can i create a package using DTS or some thing which kindoff breaks the data down and insert it into appropriate tables from the flat file. I need to find a way to carry it out in one process as the data is imported through the pipe. SO i have multiple tables which would eventaully contain the data from flat file after two weeks. is there any way i can automate the process.
regards
July 17, 2007 at 6:57 pm
Ali, I was going to say we'll forgive you for hijacking the topic, but you've done it four times. Start your own topic and you might get a better response.
Carlos, are you importing or exporting? Importing BULK INSERT is the fastest (there is a bulk insert task in DTS), exporting BCP is the fastest.
--------------------
Colt 45 - the original point and click interface
July 17, 2007 at 9:09 pm
Phill is spot on. I'll kick in that BCP has some additional features that make it a bit slower than Bulk Insert (but still faster than DTS) including error logging and rejection/isolation of bad rows in separate files. Both BCP and Bulk Insert can make use of a format file to resolve more complicated imports. BCP can also use a format file for exports. All of these things, BCP, Bulk Insert, and DTS can be scheduled to run using many of the different scheduling methods.
For sheer speed, Phill is absolutely correct... with or without a format file, Bulk Insert is the fastest. It's not uncommon to import 5 million 14 column rows in a minute or less.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 18, 2007 at 12:42 pm
Sorry Guys for interuption. but as i said i am new to this forum.
So How can i start a new topic of my own.
i know it sounds quite disturbing but ill appreciate any help regards .
July 18, 2007 at 2:42 pm
Ali,
Simply go to the Data Transformation Services (DTS) forum (you can click on the link at the top of this page) and click the "New Thread" button at the top-left of the screen.
Greg
Greg
July 18, 2007 at 2:42 pm
Ali,
Go to the forums main page: http://www.sqlservercentral.com/forums/default.aspx. Select the forum that you with to post in. You will then see a 'New Thread' button on the upper left of the forum.
July 19, 2007 at 8:22 am
Thanks Phil and Jeff. This definitely confirms what I was suspecting. Thanks guys!
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply