dbTalk Databases Forums  

Stop DTS Package

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


Discuss Stop DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Stop DTS Package - 12-07-2005 , 06:09 AM






I have a DTS package which checks for files in a designated folder, and
imports the ones it wants.

However, if no files exist it just reports an error, and the package fails.

Although this is what I want, it is untidy. Can anybody suggest how I can
add workflow 'If no files exist, stop running the package, and report
success'..

Do I have to put in a dummy task (like execute select 'Hello world') and use
'On Failure' to point to that?

Thanks

Nick


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Stop DTS Package - 12-07-2005 , 08:09 AM






How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)


"NH" <NH (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a DTS package which checks for files in a designated folder, and
imports the ones it wants.

However, if no files exist it just reports an error, and the package
fails.

Although this is what I want, it is untidy. Can anybody suggest how I can
add workflow 'If no files exist, stop running the package, and report
success'..

Do I have to put in a dummy task (like execute select 'Hello world') and
use
'On Failure' to point to that?

Thanks

Nick




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.