S. Osit (steveosit@gmail.com) writes:
[quoted text, click to view] > I'm not that great with MS-SQL, as I never really have any occasion to
> use it. However, I need to get this one thing working and don't have
> a clue where to start.
>
> I have a comma-delimited file that's delivered to the server every
> night that contains updates to one of the tables. I'm trying to
> create a DTS package that will read in the text file and update all of
> the records contained in it, rather than simply append them to the
> bottom of the table (resulting in duplicate entries).
>
> I know how to schedule it and such, but if anyone can give me some
> tips on the design of the DTS package, it would be much appreciated.
I don't know DTS, so I can't help on that part. I would use BCP to load
the file into a staging table, and then update the target table from
there. Having some process read each row and then look it up in the target
table will not be effective.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server SP3 at