In message <ca36fb3.0408120538.3fc372b (AT) posting (DOT) google.com>, mtl_jf
<jf_lanouette (AT) hotmail (DOT) com> writes
Quote:
Put this in you code to make the task fail
if ( condition ???????? )then
Main = DTSStepScriptResult_DontExecuteTask
else
Main = DTSStepScriptResult_ExecuteTask
end if
snip
|
That codes needs to go in the workflow script not the task itself.
Workflow scripts can be found by right-clicking any task, Workflow -
Properties - Options, check the box and click the button for script.
Another example of using scripts to halt, but not fail a a package-
How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org