dbTalk Databases Forums  

How trap SQL errors in DTS

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


Discuss How trap SQL errors in DTS in the microsoft.public.sqlserver.dts forum.



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

Default How trap SQL errors in DTS - 01-27-2005 , 06:47 AM







I have a sp where a cursor get a record from table1
and insert into table2.
I handle the error 2627 (Violation of PRIMARY KEY constraint .. )
so that the cursor move to the next valid record
in order to do the correct insert.

The sp works and I am glad of that but ...

when I call the same sp from a DTS (in Execute SQL Task ) with exec
usp_DialogoSmartStream_Remedy
the DTS fails as soon as sp raises the 2627 error

How do I do to avoid DTS failed ?

Thanks :..


--
Hammer - One shot, one kill

Inviato da www.mynewsgate.net

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.