all groups > sql server programming > june 2003 >
You're in the

sql server programming

group:

Copy file to database


Re: Copy file to database Wayne Snyder
6/30/2003 6:57:56 AM
sql server programming:
DTS is a fine way to do what you wish...If you are using a DTS
transformation and If performance is satisfactory that will be fine... If
you wish to make performance faster you may use the bulk insert task of DTS,
this use a TSQL version of bcp to bulk insert records into a table very
quickly...

[quoted text, click to view]

Re: Copy file to database malcolm k
6/30/2003 9:30:33 AM

Martin,
DTS is great for running a regular job/series of jobs. Don't know where
you got the idea from that it is not recommended. It has some neat
features to change the process depending on success or failure (such as
sending e-mail etc.) Fairly sophisticated packages can be developed -
specially for repeated running !

*** Sent via Developersdex http://www.developersdex.com ***
Copy file to database Martin de vroom
6/30/2003 10:39:27 PM
Hi,

I have a single comma seperated file that I need to copy to a single table
in a database, this process will occur at least once every single day
This is not a problem, In fact I have inplemented a DTS package to do it,
and re run this everyday at a certain time.

My problem is whether this is the correct way to do it. just for the record
it works fine.

However I keep reading in places that DTS should only be used for one-time
transfers, which leaves me wondering why there is an option to save the
package if it should only be needed once??

Some people say to use bcp, but then i have read in other places that a bulk
insert statement runs faster, maybe I am wrong but I though bulk insert was
like a wraper for bcp, and that executing a xp_cmdshell(bulk insert .....)
amounted to the same thing.

can anybody please point out the differences between these methods or point
me to an article that compares/contrasts these.

just for the record my comma seperated file i am importing is rougly 1000
line long..


cheers

martin.

AddThis Social Bookmark Button