all groups > sql server dts > march 2007 >
You're in the

sql server dts

group:

importing a file


importing a file Marie
3/21/2007 8:31:35 AM
sql server dts: I am attemting to move records from a text file into an existing table in SQL
Server 2000. I only want to append any new records to the table, ignoring any
records in the file that already exist in the table. But when I try to do
this using DTS, it sees the duplicate key and just errors out. Is there a way
to tell DTS to do what I want.

thanks you so much for any help

Re: importing a file narayaana
3/21/2007 5:57:10 PM
I would consider using a staging table:

DataPump[File >> Staging Table]
Then SQL Query object to insert data that are not already in (insert into
destination table select [...] Left outer join [...] b where b.key is null)


[quoted text, click to view]

AddThis Social Bookmark Button