dbTalk Databases Forums  

DTS package fails due to IGNORE DUP KEY setting

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


Discuss DTS package fails due to IGNORE DUP KEY setting in the microsoft.public.sqlserver.dts forum.



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

Default DTS package fails due to IGNORE DUP KEY setting - 08-22-2003 , 10:35 AM






Hello, here's a strange one...
I'm using SQL 2K and I set up a dts which imports data
from a csv and inserts it into a table. The indexes/keys
of the table is set with a UNIQUE key and with the
IGNORE DUPLICATE KEY option ticked, because
I don't want to insert duplicate rows.
The dts works fine, but fails (ie Workflow is not a success)
due to the error message that is caused by sql2k.
The dts is designed so that after success, it will continue
with some other tasks, but because of the error message
(and even though it's run it successfully), it fails by default
and doesn't carry on with the other tasks.
Is there any way to turn off the message, or tell the dts
to ignore it or bypass it?
Would very much appreciate any tips/hints.
Thanks.
Raul.



Reply With Quote
  #2  
Old   
Sunic
 
Posts: n/a

Default DTS package fails due to IGNORE DUP KEY setting - 08-25-2003 , 04:47 AM






Hi Raul
only other way to see the events raised by DTS is to
implement the dts logic in VB by referencing the DTS
library where you have events to denote the status of the
tasks run and final outcome. You can presumably do the
necessary custom task after the task completes there by
overcoming hte failure message given by sql2k.

Sunic

Quote:
-----Original Message-----
Hello, here's a strange one...
I'm using SQL 2K and I set up a dts which imports data
from a csv and inserts it into a table. The indexes/keys
of the table is set with a UNIQUE key and with the
IGNORE DUPLICATE KEY option ticked, because
I don't want to insert duplicate rows.
The dts works fine, but fails (ie Workflow is not a
success)
due to the error message that is caused by sql2k.
The dts is designed so that after success, it will
continue
with some other tasks, but because of the error message
(and even though it's run it successfully), it fails by
default
and doesn't carry on with the other tasks.
Is there any way to turn off the message, or tell the dts
to ignore it or bypass it?
Would very much appreciate any tips/hints.
Thanks.
Raul.


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.