dbTalk Databases Forums  

raise error

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


Discuss raise error in the microsoft.public.sqlserver.dts forum.



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

Default raise error - 08-02-2004 , 08:58 PM






Hi all,
I have a DTS package where an SQL task that simply selects * From table
where something = something. If this statement does return a value go to
next step as success workflow. If the select statement does not return any
results then I want the package to run the nextstep as failure workflow. For
some reason, the task simply stop. Here is my SQL task statement

if exists(select count(1) from table where uniquekey=114467 having
count(1)>0)
update table
else
raiserror ('task failed', 16,1)

Thanks!



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.