dbTalk Databases Forums  

Transform Data Task - Error Handling

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Transform Data Task - Error Handling in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
runningdog
 
Posts: n/a

Default Transform Data Task - Error Handling - 03-10-2005 , 02:51 AM






I have a simple package created with the Import Wizard that reads rows from
a text file to an sql table. The table has a primary key and the text is not
supposed to have duplicate records, but of course it does.

How can I tell DTS to skip duplicates instead of aborting rolling back the
transaction.

TIA
Steve



Reply With Quote
  #2  
Old   
Simon Worth
 
Posts: n/a

Default Re: Transform Data Task - Error Handling - 03-10-2005 , 07:55 AM






You should load your text file into a temp table, then use T-SQL in another
task, or procedure, or however you like to import non duplicate rows into
your table so you don't break primary key constraints.

--
Simon Worth


"runningdog" <runningdog (AT) reply (DOT) to.newsgroup> wrote

Quote:
I have a simple package created with the Import Wizard that reads rows
from
a text file to an sql table. The table has a primary key and the text is
not
supposed to have duplicate records, but of course it does.

How can I tell DTS to skip duplicates instead of aborting rolling back the
transaction.

TIA
Steve





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.