dbTalk Databases Forums  

Skip DTS steps

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


Discuss Skip DTS steps in the microsoft.public.sqlserver.dts forum.



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

Default Skip DTS steps - 11-17-2004 , 11:54 AM






Hi

It is possible to make DTS skip a number of steps according to the result of
a query for example:

IF (SELECT *
FROM Modified_sage_tables
WHERE filenme = 'ACCESS1') IS NULL
GOTO "STEP XXXX"
ELSE
GOTO "STEP YYYY"



Where "STEP YYYY" and "STEP XXXX" would be the steps of the package that I
wanted it to skip to, I would then want it to continue running through the
remaining steps of the package.

One idea I had was to make it report an error with that step, then I could
have a success and a failure route out of that step guiding it on to the
appropriate step. However I can't seem to find anything to say how to get
it to report an error back. Thanks in advance.

Dan



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Skip DTS steps - 11-17-2004 , 01:24 PM






Have you taken a look at this article

Skip the execution of an individual Task
(http://www.sqldts.com/default.aspx?214)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"IT Dep" <it (AT) isslimREMOVE_TO_REPLYited (DOT) co.uk> wrote

Quote:
Hi

It is possible to make DTS skip a number of steps according to the result of
a query for example:

IF (SELECT *
FROM Modified_sage_tables
WHERE filenme = 'ACCESS1') IS NULL
GOTO "STEP XXXX"
ELSE
GOTO "STEP YYYY"



Where "STEP YYYY" and "STEP XXXX" would be the steps of the package that I
wanted it to skip to, I would then want it to continue running through the
remaining steps of the package.

One idea I had was to make it report an error with that step, then I could
have a success and a failure route out of that step guiding it on to the
appropriate step. However I can't seem to find anything to say how to get
it to report an error back. Thanks in advance.

Dan





Reply With Quote
  #3  
Old   
IT Dep
 
Posts: n/a

Default Re: Skip DTS steps - 11-18-2004 , 10:53 AM



Hi

Thanks for your resonse, that looks to be very helpful, unfortunately as so
often happens loads of things have landed on my desk and I haven't had the
opportunity to look into it fully. I will keep you posted. Thanks

Dan
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Have you taken a look at this article

Skip the execution of an individual Task
(http://www.sqldts.com/default.aspx?214)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"IT Dep" <it (AT) isslimREMOVE_TO_REPLYited (DOT) co.uk> wrote

Hi

It is possible to make DTS skip a number of steps according to the
result of
a query for example:

IF (SELECT *
FROM Modified_sage_tables
WHERE filenme = 'ACCESS1') IS NULL
GOTO "STEP XXXX"
ELSE
GOTO "STEP YYYY"



Where "STEP YYYY" and "STEP XXXX" would be the steps of the package that
I
wanted it to skip to, I would then want it to continue running through
the
remaining steps of the package.

One idea I had was to make it report an error with that step, then I
could
have a success and a failure route out of that step guiding it on to the
appropriate step. However I can't seem to find anything to say how to
get
it to report an error back. Thanks in advance.

Dan







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.