all groups > sql server programming > february 2007 >
You're in the

sql server programming

group:

Massive Load


Massive Load Just D
2/2/2007 6:31:22 PM
sql server programming:
I have about 1 million rows of data written in a text file, about 10 columns
of different types. What's the fastest way to load the data in the DB table
keeping in mind that I can load this data into my own application to
generate any script from this text file or whatever if required to simplify
this task? What do we have for this RAW load from the text files?

Just D.

Re: Massive Load Just D
2/2/2007 7:02:35 PM
Mike, thanks for the direction, It's 2000, I'll dig deeper.

Just D.

[quoted text, click to view]

Re: Massive Load Just D
2/2/2007 7:25:37 PM
Yes, BULK INSERT worked in 1 min and 11 sec. Very fast. Thanks.

Just D.

[quoted text, click to view]

Re: Massive Load Mike C#
2/2/2007 8:35:56 PM
DTS, BCP, BULK INSERT statement, and SSIS on SQL 2005.

[quoted text, click to view]

Re: Massive Load Mike C#
2/2/2007 9:23:49 PM

[quoted text, click to view]

In that case, DTS, BCP, or BULK INSERT statement. DTS is Data
Transformation Services, access it from Enterprise Manager. BCP is a
command line utility, and BULK INSERT is the T-SQL statement. Another
alternative is to write your own app using the Bulk Copy API's, but it's not
worth it for a one-shot load.

AddThis Social Bookmark Button