dbTalk Databases Forums  

Exiting a package without putting it on failure

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


Discuss Exiting a package without putting it on failure in the microsoft.public.sqlserver.dts forum.



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

Default Exiting a package without putting it on failure - 02-27-2009 , 02:58 AM






Hello all,
I've been asked to write a package that looks for a file in a certain
directory- if the file is found, I need to treat it; if not I need to end the
package without it showing as a fialure when scheduling it as a job in the
SQL Server Agent.

In other words- is there a way to put an activeX task on failure (when I
don't find the file) without it passing the whole package to a 'failure'
state?

Hope this makes sense...

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

Default RE: Exiting a package without putting it on failure - 02-27-2009 , 07:51 AM






Just in case anyone wonders how can this be done- I had to add to my
scheduled job a step that calls another package (or an activeX) that verify
the existance of the file. If the package succeeds, I move on to the package
I originally wished to execute, otherwise I move to another step, a t-sql one
that does select 1 and ends the job on success.

Hope this will serve someone in the future...

"Nieve" wrote:

Quote:
Hello all,
I've been asked to write a package that looks for a file in a certain
directory- if the file is found, I need to treat it; if not I need to end the
package without it showing as a fialure when scheduling it as a job in the
SQL Server Agent.

In other words- is there a way to put an activeX task on failure (when I
don't find the file) without it passing the whole package to a 'failure'
state?

Hope this makes sense...

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.