dbTalk Databases Forums  

best way?

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


Discuss best way? in the microsoft.public.sqlserver.dts forum.



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

Default best way? - 08-20-2009 , 02:21 PM






Hello,

I'm using an Execute SQL Task that may or may not return a value that is
assigned to a variable (via a signal result set). Now if it does not return
a value I still want it to continue. What is the best way to accomplish
this? I set the ForceExecuctionResult property to 'Success' or is there a
better or different way to do this? What is the advantage/disadvantage?

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: best way? - 08-21-2009 , 07:44 AM






Forcing the Execution to return Success is one way to do it like you have
described. The other way is to conenct to the next task in line NOT with a
Success constraint, but with a 'Completion' constraint. Simply right-click on
the connector and edit the settings.

If you are logging results anywhere, you may lose the info that a particular
run of the SQL Task failed because it always reprots Success. If you let it
report as Failed, but the next task continues anyway, you can see that in the
logs. (just a minor point).

HTH
=====
Todd C


"Fsb" wrote:

Quote:
Hello,

I'm using an Execute SQL Task that may or may not return a value that is
assigned to a variable (via a signal result set). Now if it does not return
a value I still want it to continue. What is the best way to accomplish
this? I set the ForceExecuctionResult property to 'Success' or is there a
better or different way to do this? What is the advantage/disadvantage?







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.